From 460faf50fdcf1ac8a1e6ecf08aa4627facba75f4 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 7 Feb 2024 16:16:19 -0500 Subject: [PATCH] NO-JIRA proposed log4j commented out log configuration for testing I have to keep looking how to do this every time I need it. I just wanted to proposed a commented out section for next time I need this again. --- tests/config/log4j2-tests-config.properties | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/config/log4j2-tests-config.properties b/tests/config/log4j2-tests-config.properties index ea08f9d741..be88f1b87d 100644 --- a/tests/config/log4j2-tests-config.properties +++ b/tests/config/log4j2-tests-config.properties @@ -15,6 +15,8 @@ # Log4J 2 configuration used in tests. rootLogger = INFO, Console +# replace rootLogger by the following line if you want File output on your logging +# rootLogger = INFO, Console, File logger.activemq.name=org.apache.activemq logger.activemq.level=INFO @@ -37,3 +39,10 @@ appender.console.type=Console appender.console.name=Console appender.console.layout.type=PatternLayout appender.console.layout.pattern=[%t] %d{HH:mm:ss,SSS} %-5level [%logger] %msg%n + +# appender.file.type=File +# appender.file.name=File +# appender.file.fileName=target/test-debug.log +# appender.file.layout.type=PatternLayout +# appender.file.layout.pattern=%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n +# appender.file.append=true