标签:ogg int lin start 配置文件 ack org version hold
#log4j.rootLogger=INFO,C
log4j.rootLogger=INFO,C
#first way log All
##########
# C,System.out
#log4j.appender.C.Threshold=INFO print info or above
##########
# log4j.logger.sfk.bbs=INFO,C,F
# only log the package start with sfk.bbs
#second way set log package
log4j.appender.C=org.apache.log4j.ConsoleAppender
log4j.appender.C.Threshold=INFO
log4j.appender.C.layout=org.apache.log4j.PatternLayout
log4j.appender.C.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %L %p %C{1} - %m%n
###########
#save in file
#log4j.appender.F.Threshold=INFO ,info or above
###########
log4j.appender.F=org.apache.log4j.DailyRollingFileAppender
# save file path
log4j.appender.F.File=D:\test\lobs.log
log4j.appender.F.Append=true
log4j.appender.F.Threshold=INFO
log4j.appender.F.layout=org.apache.log4j.PatternLayout
log4j.appender.F.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %L %p %C{1} - %m%n
标签:ogg int lin start 配置文件 ack org version hold
原文地址:http://www.cnblogs.com/rocky-AGE-24/p/7115930.html