Re: Main application uses log4j2-test.xml in Eclipse

2018-01-18 Thread Sverre Moe
How can I avoid Log4j using any test configuration when I am running my application in Eclipse IDE? my-api/src/test/resources/log4j2-test.xml my-application/src/test/resources/log4j2-test.xml my-application/src/main/resources/log4j2.xml I am not running tests, but my main application, thus I do n

Re: Main application uses log4j2-test.xml in Eclipse

2017-11-24 Thread Sverre Moe
I am running the application in Eclipse. Perhaps it adds the test classpath, even though I am not running a test application. Does a programmatic configuration override log4j2-test configuration or any other file configuration? Because using my own ConfigurationFactory works and it doens't use the

Re: Main application uses log4j2-test.xml in Eclipse

2017-11-24 Thread Matt Sicker
Are you running your application using your main classpath or your test classpath? It's a feature of log4j2 to use the test config first based on typical classpath usage scenarios. If there's no way for you to run your application without the test classpath, then you can set the config file system

Main application uses log4j2-test.xml in Eclipse

2017-11-23 Thread Sverre Moe
Running my main application in Eclipse it is using the log4j2-test.xml configuration, and not the log4j2.xml configuration. src/main/resources/log4j2.xml src/test/resources/log4j2-test.xml I am not running a test application under src/test, but my main application under src/main/ target/classes/l