Skip to content

crontriggeringpolicy vs timebasedtriggeringpolicy for daily rotation of log files #2826

Answered by rgoers
rswathirao asked this question in Q&A
Discussion options

You must be logged in to vote

CronTriggeringPolicy uses the ConfigurationScheduler and schedules an activity at the rollover time. When that occurs it just calls the manager.rollover() method. TimeBasedTriggeringPolicy compares the time in every log event and rolls over when it gets a time greater than the rollover time.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rswathirao
Comment options

You must be logged in to vote
1 reply
@ppkarwasz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants