B
BlueDolphin
Seems log4j is playing some magic...
It always try to write debug info to console. If I set the rootLogger
to INFO, then no info on both console and log file, if I set to DEBUG,
message goes to both console and log....
Confusing....
I tried RollingFileAppender too....
Thanks
I have the following log4j.properties
log4j.rootLogger = DEBUG, RRX
#log4j.rootLogger = OFF, stdout
log4j.appender.RRX=org.apache.log4j.FileAppender
log4j.appender.RRX.File=MyRRX.log
log4j.appender.RRX.layout=org.apache.log4j.PatternLayout
log4j.appender.RRX.layout.ConversionPattern=%d %-5p %c - %m%n
#log4j.appender.RRX.append=false
It always try to write debug info to console. If I set the rootLogger
to INFO, then no info on both console and log file, if I set to DEBUG,
message goes to both console and log....
Confusing....
I tried RollingFileAppender too....
Thanks
I have the following log4j.properties
log4j.rootLogger = DEBUG, RRX
#log4j.rootLogger = OFF, stdout
log4j.appender.RRX=org.apache.log4j.FileAppender
log4j.appender.RRX.File=MyRRX.log
log4j.appender.RRX.layout=org.apache.log4j.PatternLayout
log4j.appender.RRX.layout.ConversionPattern=%d %-5p %c - %m%n
#log4j.appender.RRX.append=false