123456789101112131415161718192021222324252627282930 |
- log4j.rootLogger=info, stdout, errorlogfile,infologfile
- log4j.appender.stdout=org.apache.log4j.ConsoleAppender
- log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
- log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
- log4j.appender.errorlogfile=org.apache.log4j.DailyRollingFileAppender
- log4j.appender.errorlogfile.File=d\:\\log\\wttargetreport\\error.log
- log4j.appender.errorlogfile.MaxFileSize=512KB
- # Keep three backup files.
- log4j.appender.errorlogfile.MaxBackupIndex=3
- log4j.appender.errorlogfile.Append = true
- log4j.appender.errorlogfile.Threshold = ERROR
- # Pattern to output: date priority [category] - message
- log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
- log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n %l%n
- log4j.appender.infologfile=org.apache.log4j.DailyRollingFileAppender
- log4j.appender.infologfile.File=d\:\\log\\wttargetreport\\info.log
- log4j.appender.infologfile.MaxFileSize=512KB
- # Keep three backup files.
- log4j.appender.infologfile.MaxBackupIndex=3
- log4j.appender.infologfile.Append = true
- log4j.appender.infologfile.Threshold = info
- # Pattern to output: date priority [category] - message
- log4j.appender.infologfile.layout=org.apache.log4j.PatternLayout
- log4j.appender.infologfile.layout.ConversionPattern=%d %p [%c] - %m%n %l%n
|