May 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Archives
- October 2013 (1)
- September 2010 (2)
- April 2010 (1)
- February 2010 (1)
- November 2009 (2)
- September 2009 (3)
- August 2009 (3)
- July 2009 (2)
- June 2009 (3)
- May 2009 (1)
- April 2009 (5)
Tag Archives: Log4j selective logging
Using Log4j to selectively log to multiple files
You need to set up more categories in the log4j.properties file, this can be done like so: # The default root appender log4j.rootLogger=A1 # A1 is set to be a ConsoleAppender which outputs to System.out. log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-22d{dd/MMM/yyyy HH:mm:ss} %-8p … Continue reading