From 7b684333821b2ec47a9abafc69f36c603e680abf Mon Sep 17 00:00:00 2001 From: jai1 Date: Fri, 10 Feb 2017 13:47:04 -0800 Subject: [PATCH] Update log4j.properties, since currently you can't print DEBUG level logs even if you change the configuration. http://stackoverflow.com/questions/15086818/log4j-debug-messages-not-showing-in-console-despite-isdebugenabled-being-true --- conf/log4j.properties | 4 ++-- conf/log4j.shell.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/log4j.properties b/conf/log4j.properties index 8dd7a34bd7a8e..03c14c0814009 100644 --- a/conf/log4j.properties +++ b/conf/log4j.properties @@ -34,7 +34,7 @@ log4j.rootLogger=${pulsar.root.logger} # Log INFO level and above messages to the console # log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.Threshold=INFO +log4j.appender.CONSOLE.Threshold=DEBUG log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} - %-5p - [%t:%C{1}@%L] - %m%n @@ -43,7 +43,7 @@ log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} - %-5p - [%t:%C{1}@% # Log DEBUG level and above messages to a log file log4j.appender.ROLLINGFILE=org.apache.log4j.DailyRollingFileAppender -log4j.appender.ROLLINGFILE.Threshold=INFO +log4j.appender.ROLLINGFILE.Threshold=DEBUG log4j.appender.ROLLINGFILE.File=${pulsar.log.dir}/${pulsar.log.file} log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d{ISO8601} - %-5p - [%t:%C{1}@%L] - %m%n diff --git a/conf/log4j.shell.properties b/conf/log4j.shell.properties index ee56ec661a903..aa9c8673292c7 100644 --- a/conf/log4j.shell.properties +++ b/conf/log4j.shell.properties @@ -27,7 +27,7 @@ log4j.rootLogger=${bookkeeper.root.logger} # Log INFO level and above messages to the console # log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.Threshold=INFO +log4j.appender.CONSOLE.Threshold=DEBUG log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%d{ABSOLUTE} %-5p %m%n