본문 바로가기

Programming/Java

log4j 설정파일

log4j.rootLogger=DEBUG, CONSOLE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p [%d{HH:mm:ss}] %F:%L - %m%n

log4j.additivity.org.apache.commons.configuration=false

log4j.logger.org.kftc=DEBUG, KWSL
log4j.appender.KWSL=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.KWSL.MaxFileSize=100MB
#log4j.appender.KWSL.MaxBackupIndex=4
log4j.appender.KWSL.File=./log/KWSL.log
log4j.appender.KWSL.layout=org.apache.log4j.PatternLayout
log4j.appender.KWSL.layout.ConversionPattern=%-5p [%d{MM-dd HH:mm:ss}] %F:%L - %m%n
log4j.appender.KWSL.DatePattern='.'yyyyMMdd

log4j.logger.util.ftp=DEBUG, FTP
#log4j.additivity.util.ftp=false
log4j.appender.FTP=org.apache.log4j.RollingFileAppender
log4j.appender.FTP.MaxFileSize=100MB
log4j.appender.FTP.MaxBackupIndex=4
log4j.appender.FTP.File=./log/ftp.log
log4j.appender.FTP.layout=org.apache.log4j.PatternLayout
log4j.appender.FTP.layout.ConversionPattern=%d %-5p [%t] %l: %m%n

log4j.logger.util.http=DEBUG, HTTP
#log4j.additivity.util.http=false
log4j.appender.HTTP=org.apache.log4j.RollingFileAppender
log4j.appender.HTTP.MaxFileSize=100MB
log4j.appender.HTTP.MaxBackupIndex=4
log4j.appender.HTTP.File=./log/http.log
log4j.appender.HTTP.layout=org.apache.log4j.PatternLayout
log4j.appender.HTTP.layout.ConversionPattern=%d %-5p [%t] %l: %m%n

'Programming > Java' 카테고리의 다른 글

이클립스 Error/Warning 메세지 필터링 하기  (0) 2010.01.12
Java Ant 사용법  (0) 2010.01.12
Javadoc란  (0) 2009.11.18
Eclipse에서 ClassNotFoundException 발생시 고려사항  (1) 2009.09.24