Need Help with log4J

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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top