Log4jの設定ファイルの設置方法
参考コード
# Global logging configuration
log4j.rootLogger=info, stdout,fileout
# Console output…
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] – %m%n
#log4j.logger.com.hhdys.dao=debug
#File output…
log4j.appender.fileout=org.apache.log4j.DailyRollingFileAppender
log4j.appender.fileout.file=F:/log_startnews24/log_startnews24.txt
log4j.appender.fileout.fileName=base_startnews24.log
log4j.appender.fileout.encoding=UTF-8
log4j.appender.fileout.datePattern=’.’yyyy-MM-dd
log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
log4j.appender.fileout.layout.ConversionPattern=%5p [%t] – %m%n