Re: Strange error using code to set up JDBC logger

2021-08-21 Thread Gary Gregory
Martin, I think the best way for anyone here to help would be if you posted a PR on GitHub with a failing unit test on the release-2.x git branch. We already have lots of other tests which you can use as the basis for a new one. Gary On Thu, Aug 12, 2021, 03:14 Martin Fernau wrote: > Thanks

Re: Strange error using code to set up JDBC logger

2021-08-12 Thread Martin Fernau
Thanks for your response. I'm currently using the latest Version 2.14.1 with Gradle: --cut     // Log4j2     implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.14.1'     implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j18-impl', version: '2.14.1

Re: Strange error using code to set up JDBC logger

2021-08-11 Thread Gary Gregory
The first thing I would say is please make sure you are using the current version 2.14.1. Gary On Wed, Aug 11, 2021, 11:34 Martin Fernau wrote: > Hello, > > I'm having the same problem and wonder if there is a complete example of > how to configure a JDBC Appender programmatically. > > I'm too

Re: Strange error using code to set up JDBC logger

2021-08-11 Thread Martin Fernau
Hello, I'm having the same problem and wonder if there is a complete example of how to configure a JDBC Appender programmatically. I'm too getting the exception "Arguments given for element JDBC are invalid: field 'connectionSource' has invalid value 'null'". Thanks Martin On 2019/03/18 15

Strange error using code to set up JDBC logger

2019-03-18 Thread Arnold Morein
I am trying to configure a JDBC logger via code (no problems using it from XML file). I'm using Log4j2 version 2.11.2. What examples I can find are vague, incomplete, or not related. I'm finding code that may be for log4j1 and log4-jdbc but no jars in mvnrepository.com so is that old and depr