java - Why do I get DEBUG level logging in console? -
i have log4j properties file defined so:
log4j.rootlogger=info, stdout log4j.appender.stdout=org.apache.log4j.consoleappender log4j.appender.stdout.layout=org.apache.log4j.patternlayout log4j.appender.stdout.layout.conversionpattern=%d{yyyy-mm-dd hh:mm:ss} %-5p %c{1}:%l - %m%n log4j.logger.com.github.user=debug, file log4j.appender.file=org.apache.log4j.rollingfileappender log4j.appender.file.file=target/cucumber-parser.log log4j.appender.file.maxfilesize=5mb log4j.appender.file.maxbackupindex=10 log4j.appender.file.layout=org.apache.log4j.patternlayout log4j.appender.file.layout.conversionpattern=%d{yyyy-mm-dd hh:mm:ss} %-5p %c{1}:%l - %m%n
based on understanding, info
level logging should routed stdout
(console) , debug
should written file. both, info
, debug
level in console. doing wrong?
because info level covers debug level. see both.
see more logging levels
Comments
Post a Comment