Forums Register Login

log4j config

+Pie Number of slices to send: Send
hi,
I am trying to use the DailyRollingFileAppender and hv a few doubts/ questions:

I read in the manual that the DailyRollingFileAppender generates a daily log and attaches that day�s date to the log.I also read that the max file size is 10 Mb and that it is also possible to create backups such as test.log.1 and so on..

1.What happens if the log exceeds the 10 Mb within a single day ??
2. Say, the total log size is 30 Mb for any given day, are the logs generated and named as
test.log.1
test.log.2
test.log.3

and at the end of the day are all clubbed together to form test.log.03-08-2004 ??

Can this be possible ? and can anyone provide a small example ?

thnx in adv,
Oh. Hi guys! Look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 682 times.
Similar Threads
log files to be delete using jboss service
log4j Question
Multiple log files using Log4j
Appending Date in the name of created LOG4J file
Append date in RollingFileAppender
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:39:08.