[
https://issues.apache.org/jira/browse/LOG4J2-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ralph Goers reassigned LOG4J2-3361:
-----------------------------------
Assignee: Ralph Goers
> SizeBasedTriggeringPolicy does not work properly
> ------------------------------------------------
>
> Key: LOG4J2-3361
> URL: https://issues.apache.org/jira/browse/LOG4J2-3361
> Project: Log4j 2
> Issue Type: Bug
> Reporter: Balaram barada
> Assignee: Ralph Goers
> Priority: Major
>
>
> We have configured log42.xml as given below , its configured as 5MB but
> rolling files are getting generated more then 5Mb i.e 6.3MB ,9 Mb , 5.3 MB
> etc.
>
> {code:java}
> <RollingFile name="INSTALLER_LOG" fileName="${sys:iwloghome}/installer.log"
>
> filePattern="${sys:iwloghome}/installer-%d{yyyy-MM-dd}-%i.log"
> ignoreExceptions="false">
> <PatternLayout pattern ="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2}
> (%F:%L) - %m%n"/>
> <Policies>
> <SizeBasedTriggeringPolicy size="5MB" />
> </Policies>
> <DefaultRolloverStrategy max="20"/>
> </RollingFile> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)