log4j configuration for appender
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, May 12, 2006 02:13 PM

I have configured an appender as : log file - one file per day --> This configuration generates one file per day with the date appended, for example : "ABC.log.20060512". All the transactions per day are logged in this file. The problem is when the application is restarted, the file for the day is overwritten. All logged records till then (for the day) are lost. Can someone tell me how to configure Log4j to add to an existing file instead of over-writing on application restart?    More>>

I have configured an appender as :


			













This configuration generates one file per day with the date appended, for example : "ABC.log.20060512". All the transactions per day are logged in this file.

The problem is when the application is restarted, the file for the day is overwritten. All logged records till then (for the day) are lost. Can someone tell me how to configure Log4j to add to an existing file instead of over-writing on application restart?    <<Less
About | Sitemap | Contact