#
# Set root logger level (DEBUG, INFO, WARN, FATAL) and define appenders
#

log4j.rootLogger=DEBUG,dailyByHour

# stdout is set to be a ConsoleAppender
# stdout uses PatternLayout
# [date] [Priority] [class name] : [message]
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %-5p %M: %m%n

# logfile is set to be a RollingFileAppender. Keep 10 backup files before rotating
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=rollinglogfile.log
log4j.appender.rolling.MaxFileSize=50MB
log4j.appender.rolling.MaxBackupIndex=10
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{ISO8601} %-5p %30.40c{2} : %m%n

# logfile is set to be a FileAppender.
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=logfile.log
log4j.appender.file.append=false
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %-5p %30.40c{2} : %m%n

# logfile is set to be a DailyFileAppender - by minute
log4j.appender.dailyByMinute=org.apache.log4j.DailyRollingFileAppender
log4j.appender.dailyByMinute.File=logfile.log
log4j.appender.dailyByMinute.append=false
log4j.appender.dailyByMinute.DatePattern='.'yyyy-MM-dd-HH-mm
log4j.appender.dailyByMinute.layout=org.apache.log4j.PatternLayout
log4j.appender.dailyByMinute.layout.ConversionPattern=%d{ISO8601} %-5p %30.40c{2} : %m%n

# logfile is set to be a DailyFileAppender - by hour
log4j.appender.dailyByHour=org.apache.log4j.DailyRollingFileAppender
log4j.appender.dailyByHour.File=logfile.log
log4j.appender.dailyByHour.append=false
log4j.appender.dailyByHour.DatePattern='.'yyyy-MM-dd-HH
log4j.appender.dailyByHour.layout=org.apache.log4j.PatternLayout
log4j.appender.dailyByHour.layout.ConversionPattern=%d{ISO8601} %-5p %30.40c{2} : %m%n





