Anton Wiedermann created LOGBACK-1404:
-----------------------------------------
Summary: SizeAndTimeBasedRollingPolicy discards log data
Key: LOGBACK-1404
URL: https://jira.qos.ch/browse/LOGBACK-1404
Project: logback
Issue Type: Bug
Components: logback-core
Affects Versions: 1.2.3
Environment: Windows 10 64bit
org.slf4j:slf4j-api:1.7.25
ch.qos.logback:logback-classic:1.2.3
Reporter: Anton Wiedermann
Assignee: Logback dev list
Attachments: logback.xml, Rotfail.java
RollingFileAppender when used with SizeAndTimeBasedRollingPolicy disards during
log rotation first file that should have been archived. This happens only if
file rotates by time before first rotating by date
Attached is app that simply does some info and debug logging and logback config
file that logs everything to one file and info to other. Logs rotate at 100kB
or after a minute. fast log keeps exceeding file size limit so it is archived
properly. slow log does not exceed the file size limit and when minute changes
it simply gets deleted and starts fresh. With next minute change it is properly
archived though.
Since log rotation is usually set for a day this can mean loss of day worth of
logging.
--
This message was sent by Atlassian JIRA
(v7.3.1#73012)
_______________________________________________
logback-dev mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-dev