Alexander Afanasyev | d74818b | 2013-07-09 10:54:42 -0700 | [diff] [blame] | 1 | # Set root logger level to DEBUG and its only appender to A1. |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 2 | log4j.rootLogger=TRACE, A1 |
| 3 | #, rollingFile |
Alexander Afanasyev | d74818b | 2013-07-09 10:54:42 -0700 | [diff] [blame] | 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 |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 13 | log4j.appender.A1.layout.ConversionPattern=%d{ss,SSS} %-5p %-12c %m%n |
Alexander Afanasyev | d74818b | 2013-07-09 10:54:42 -0700 | [diff] [blame] | 14 | |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 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 |
Alexander Afanasyev | d74818b | 2013-07-09 10:54:42 -0700 | [diff] [blame] | 24 | |