http://www.beaconhill.com/blog/?p=38
There are some minor error in the original post. Here is a version I think would be better.
# Set root logger to DEBUG and add an appender called A1.
log4j.rootLogger=INFO, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
No comments:
Post a Comment