I am using Rolling File Appender with the Log4j2 2.0 version jar.
Now when I use both OnStartupTriggeringPolicy and TimeBasedTriggeringPolicy
set with the interval 3 minutes and use the OnStartupTriggeringPolicy policy
to roll at the server restart.
Now if, my file pattern has only date pattern set (%d{yyyy-MM-dd-HH-mm}) and
not %i, and I restart the server more than 3-4 times, the policy rolls the
file to future time and when the TimeBasedTriggeringPolicy tries to roll the
file, possibility is that file is already present due to rollover by
restarting the server many times and that earlier log file gets overwritten.
This leads to loss of the logging thus I think OnStartupTriggeringPolicy
policy when does a rollover, should all the currentTimeMillis to the log
file name as well.
Could you please look into this issue?
Regards,
Parkirat Singh Bagga.
--
View this message in context:
http://apache-logging.6191.n7.nabble.com/Issue-in-RollingFileAppender-when-using-both-OnStartupTriggeringPolicy-and-TimeBasedTriggeringPolicy-tp49998.html
Sent from the Log4j - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]