log4j 프로필

1078 단어 apache.clog4jBlog
         ,            apache commons-logging+log4j
1. commons-logging.properties
#Logging Implementation
#Log4J
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
2. log4j.properties
#level=ERROR,WARN,INFO,DEBUG
#
#org.apache.log4j.ConsoleAppender
#org.apache.log4j.FileAppender
#org.apache.log4j.DailyRollingFileAppender
#org.apache.log4j.RollingFileAppender
#org.apache.log4j.WriterAppender
#
#org.apache.log4j.HTMLLayout
#org.apache.log4j.PatternLayout
#org.apache.log4j.SimpleLayout
#org.apache.log4j.TTCCLayout
#
log4j.rootLogger=debug,b
log4j.appender.a=org.apache.log4j.DailyRollingFileAppender
log4j.appender.a.File=run.log
log4j.appender.a.DatePattern=yyyyMMdd'.log4j'
log4j.appender.a.layout=org.apache.log4j.PatternLayout
log4j.appender.a.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %p %c{2}[%L]: %m%n
log4j.appender.b=org.apache.log4j.ConsoleAppender
log4j.appender.b.layout=org.apache.log4j.PatternLayout
log4j.appender.b.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %p %c{2}[%L]: %m%n

좋은 웹페이지 즐겨찾기