logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Khokhlov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-381) Changes in SizeBasedTriggeringPolicy has no effects when automatic reconfiguration is on.
Date Fri, 16 Oct 2015 11:33:05 GMT

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

Alexander Khokhlov commented on LOG4J2-381:
-------------------------------------------

[~ralph.goers@dslextreme.com], do you have plans to apply path provided by [~abaldocchi]?

> Changes in SizeBasedTriggeringPolicy has no effects when automatic reconfiguration is
on.
> -----------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-381
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-381
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.2, 2.3
>            Reporter: Alexander Khokhlov
>         Attachments: LOG4J2-381.patch
>
>
> My config is very simple:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' strict="true"
monitorInterval="5">
>   <appenders>
>     <appender type="console" name="CONSOLE">
>       <layout type="PatternLayout" pattern="%5p %10c %C{1}(%L) - %m%n"/>
>     </appender>
>     <appender name="BOOT" type="rollingfile" fileName="boot.log" filePattern="boot-%i.log"
append="true">
>       <layout type="PatternLayout" pattern="%5p %10c %C{1}(%L) - %m %ex%n"/>
>       <SizeBasedTriggeringPolicy size="1 kb" />
>       <DefaultRolloverStrategy />
>     </appender>
>   </appenders>
>   <loggers>
>     <root level="all">
>       <appender-ref ref="CONSOLE"/>
>       <appender-ref ref="BOOT"/>
>     </root>
>   </loggers>
> </configuration>
> {code}
> This is because when you create a RollingFileAppender again it uses the previously created
RollingFileManager obtained from MAP (AbstractManager (69)). But in my case, the name is already
exists, so appropriate manager already been created. But "data" parameter are not the same
when manager was created at first time. It contains new value of policy.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message