[ 
https://issues.apache.org/jira/browse/LOG4J2-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17536459#comment-17536459
 ] 

Ralph Goers commented on LOG4J2-3361:
-------------------------------------

This is still waiting for feedback from the user. Note that if there is an 
error rolling the file over it s expected that it will continue to write to the 
file. 

> 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.7#820007)

Reply via email to