- Joined
- Jul 14, 2009
- Messages
- 1
- Reaction score
- 0
I'm using this log4j.properties file
----
log4j.rootLogger=ALL, BEACON, stdout
# Write "Info"-level (and above) messages to a daily log file
log4j.appender.BEACON=org.apache.log4j.DailyRollingFileAppender
log4j.appender.BEACON.Threshold=info
log4j.appender.BEACON.File=E:/logs/application/beacon/beacon.log
log4j.appender.BEACON.DatePattern='.'yyyyMMdd'.txt'
log4j.appender.BEACON.layout=org.apache.log4j.PatternLayout
log4j.appender.BEACON.layout.ConversionPattern=%d %-5p %c - %m%n
# Write "Error"-level (and above) messages to Console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Threshold=error
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %-5p %c - %m%n
--------
its dailyrollingfileappender, it doen't creating a new file after a day, it simply overwritting the same file.. no log history is maintaind..
----
log4j.rootLogger=ALL, BEACON, stdout
# Write "Info"-level (and above) messages to a daily log file
log4j.appender.BEACON=org.apache.log4j.DailyRollingFileAppender
log4j.appender.BEACON.Threshold=info
log4j.appender.BEACON.File=E:/logs/application/beacon/beacon.log
log4j.appender.BEACON.DatePattern='.'yyyyMMdd'.txt'
log4j.appender.BEACON.layout=org.apache.log4j.PatternLayout
log4j.appender.BEACON.layout.ConversionPattern=%d %-5p %c - %m%n
# Write "Error"-level (and above) messages to Console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Threshold=error
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %-5p %c - %m%n
--------
its dailyrollingfileappender, it doen't creating a new file after a day, it simply overwritting the same file.. no log history is maintaind..