Yingdi Yu | 0a6b6c5 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 1 | # Set root logger level to DEBUG and its only appender to A1. |
| 2 | log4j.rootLogger=TRACE, A1 |
| 3 | #, rollingFile |
| 4 | |
| 5 | # A1 is set to be a ConsoleAppender. |
| 6 | log4j.appender.A1=org.apache.log4j.ConsoleAppender |
| 7 | |
| 8 | # A1 uses PatternLayout. |
| 9 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout |
| 10 | log4j.appender.A1.target=System.err |
| 11 | #log4j.appender.A1.layout.ConversionPattern=%d{dd-MMM HH:MM:SS,SSS} %p %c %m%n |
| 12 | #log4j.appender.A1.layout.ConversionPattern=%d{hh:mm:ss,SSS} %-14t %-14c %m%n |
| 13 | log4j.appender.A1.layout.ConversionPattern=%d{ss,SSS} %-5p %-12c %m%n |
| 14 | |
| 15 | log4j.appender.rollingFile=org.apache.log4j.RollingFileAppender |
| 16 | log4j.appender.rollingFile.File=logfile.txt |
| 17 | log4j.appender.rollingFile.MaxFileSize=10MB |
| 18 | log4j.appender.rollingFile.MaxBackupIndex=9 |
| 19 | log4j.appender.rollingFile.layout = org.apache.log4j.PatternLayout |
| 20 | log4j.appender.rollingFile.layout.ConversionPattern=%d{ss,SSS} %-5p %-12c %m%n |
| 21 | |
| 22 | log4j.logger.Executor = ERROR |
| 23 | #log4j.logger.Scheduler = ERROR |
| 24 | |