工作中的log4j

# Output pattern : date [thread] priority category - message
log4j.rootLogger=INFO, Console, RollingFile, Error
#log4j.rootLogger=Error
log4j.logger.BMS=INFO,BMS
log4j.logger.CallCenter=INFO,CallCenter
log4j.logger.TMS=INFO,TMS
log4j.logger.EAM=INFO,EAM
log4j.logger.MWP=INFO,MWP
#SelfApply日志
log4j.logger.SELFAPPLY=INFO,SELFAPPLY
log4j.logger.TPOS=INFO,TPOS


#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.Target=System.out
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n


log4j.appender.Ehcache=org.apache.log4j.ConsoleAppender
log4j.appender.Ehcache.layout=org.apache.log4j.PatternLayout 
log4j.appender.Ehcache.layout.ConversionPattern= %d [%t] %-5p [%c] - %m%n


#RollingFile
log4j.appender.RollingFile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RollingFile.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/oss.log
log4j.appender.RollingFile.Append=true
log4j.appender.RollingFile.Threshold=DEBUG
log4j.appender.RollingFile.layout=org.apache.log4j.PatternLayout
log4j.appender.RollingFile.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n


### 保存异常信息到单独文错误的Unicode字符串!
log4j.appender.Error=org.apache.log4j.DailyRollingFileAppender
log4j.appender.Error.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/error.log
log4j.appender.Error.Append = true
log4j.appender.Error.Threshold=ERROR
log4j.appender.Error.layout=org.apache.log4j.PatternLayout
log4j.appender.Error.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n


### 保错误的Unicode字符串!
log4j.appender.BMS=org.apache.log4j.DailyRollingFileAppender
log4j.appender.BMS.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/BMS.log
log4j.appender.BMS.Append = true
log4j.appender.BMS.Threshold=INFO
log4j.appender.BMS.layout=org.apache.log4j.PatternLayout
log4j.appender.BMS.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
log4j.appender.BMS.Encoding=UTF-8 
### 保错误的Unicode字符串!
log4j.appender.CallCenter=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CallCenter.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/CallCenter.log
log4j.appender.CallCenter.Append = true
log4j.appender.CallCenter.Threshold=INFO
log4j.appender.CallCenter.layout=org.apache.log4j.PatternLayout
log4j.appender.CallCenter.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n


### 保错误的Unicode字符串!
log4j.appender.TMS=org.apache.log4j.DailyRollingFileAppender
log4j.appender.TMS.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/TMS.log
log4j.appender.TMS.Append = true
log4j.appender.TMS.Threshold=INFO
log4j.appender.TMS.layout=org.apache.log4j.PatternLayout
log4j.appender.TMS.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n


### 保错误的Unicode字符串!
log4j.appender.EAM=org.apache.log4j.DailyRollingFileAppender
log4j.appender.EAM.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/EAM.log
log4j.appender.EAM.Append=true
log4j.appender.EAM.Threshold=INFO
log4j.appender.EAM.layout=org.apache.log4j.PatternLayout
log4j.appender.EAM.layout.ConversionPattern=%d [%t] %-5p [%c] - %m[%L]%n


### 手持终端日错误的Unicode字符串!
log4j.appender.MWP=org.apache.log4j.DailyRollingFileAppender
log4j.appender.MWP.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/MWP.log
log4j.appender.MWP.Append=true
log4j.appender.MWP.Threshold=INFO
log4j.appender.MWP.layout=org.apache.log4j.PatternLayout
log4j.appender.MWP.layout.ConversionPattern=%d [%t] %-5p [%c] - %m[%L]%n


###SELFAPPLY 日志文件配错误的Unicode字符串!
log4j.appender.SELFAPPLY=org.apache.log4j.DailyRollingFileAppender
log4j.appender.SELFAPPLY.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/SELFAPPLY.log
log4j.appender.SELFAPPLY.Append=true
log4j.appender.SELFAPPLY.Threshold=INFO
log4j.appender.SELFAPPLY.layout=org.apache.log4j.PatternLayout
log4j.appender.SELFAPPLY.layout.ConversionPattern=%d [%t] %-5p [%c] - %m[%L]%n
### 手持终端日错误的Unicode字符串!
log4j.appender.TPOS=org.apache.log4j.DailyRollingFileAppender
log4j.appender.TPOS.File=/filedisk/Oracle/Middleware/Oracle_Home/user_projects/domains/log/TPOS.log
log4j.appender.TPOS.Append=true
log4j.appender.TPOS.Threshold=INFO
log4j.appender.TPOS.layout=org.apache.log4j.PatternLayout
log4j.appender.TPOS.layout.ConversionPattern=%d [%t] %-5p [%c] - %m[%L]%n

你可能感兴趣的:(java基础)