[ 
https://issues.apache.org/jira/browse/LOG4J2-3361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ralph Goers updated LOG4J2-3361:
--------------------------------
    Description: 
 

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}
 

  was:
 

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.
h1. <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>


> 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
>            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)

Reply via email to