AmanDaharwal opened a new issue, #2185: URL: https://github.com/apache/logging-log4j2/issues/2185
## Description I am importing a project X as a gradle dependency who was build on log 4j version 2.22.0 I am using the sample log4j 2.22.0 After migration from log4j 1.x to log4j.2x, in my current project Y, I am not getting logs in CONSOLE. Though logs are printed properly in file( using rolling appender) but not in console. Project X is importing log4j.2x dependencies from another Maven project Z ## Configuration **Version:** Log 4j 2.22.0 , Intellij Idea IDE **Operating system:** Mac 12.3 **JDK:** OpenJDK 11 ## Reproduction 1. Clone repo :`https://github.com/AmanDaharwal/getting-started-with-teswiz/tree/log4jTest` 2. Checkout branch `log4jTest` 3. Build gradle ( `./gradlew build` ) 4. Sample test is available at location java/com/znsio/sample/e2e/steps/Log4jTestStep.java. And two log4j and log4j2 properties files are available at src/test/resources/ To run with log4j.properties file, use command - CONFIG=./configs/indigo/indigo_local_config.properties PLATFORM=web TAG=test1 ./gradlew run To run with log4j2.properties file, use command - CONFIG=./configs/indigo/indigo_local_config2.properties PLATFORM=web TAG=test1 ./gradlew run ## Behaviour 1. With old log4j file, getting logs in file( at location target/{CurrentTimeStamp/testLogs}), but not in console 2. With new log4j2 file, not getting any logs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
