dcsimg
[log4j]: TimeBasedRollingPolicy & SizeBasedTriggeringPolicy
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Strelok_Strelok
Posted On:   Thursday, March 20, 2008 05:52 AM

I am trying to use org.apache.log4j.rolling.RollingFileAppender with a rolling policy and triggering policy without much success.



rolling policy: TimeBasedRollingPolicy (for daily roll over)

triggering policy: SizeBasedTriggeringPolicy



What seems to happen is that; the file only rolls over when both the rolling policy and triggering policy hit. If someone knows how to use both, then that would be great.

Re: [log4j]: TimeBasedRollingPolicy & SizeBasedTriggeringPolicy

Posted By:   Anonymous  
Posted On:   Wednesday, March 26, 2008 11:01 AM

Maybe you can try to use two file appenders pointing to the same log file.
About | Sitemap | Contact