You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/28 13:27:00 UTC
[jira] [Commented] (LOG4J2-1725) RollingFileAppender's filePattern
not reloaded when using monitorInterval
[ https://issues.apache.org/jira/browse/LOG4J2-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16066477#comment-16066477 ]
ASF GitHub Bot commented on LOG4J2-1725:
----------------------------------------
GitHub user phymbert opened a pull request:
https://github.com/apache/logging-log4j2/pull/90
[LOG4J2-1725] RollingFileAppender's filePattern not reloaded
Reproduced and fixed, allow to update PatternProcessor of the reused manager if configuration changed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/phymbert/logging-log4j2 LOG4J2-1725
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/logging-log4j2/pull/90.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #90
----
commit 6511034f50bb1602a6eadb3906b2afa5547ef069
Author: phymbert <pi...@gmail.com>
Date: 2017-06-28T12:34:24Z
[LOG4J2-1725] Added unit test to reproduce the issue
Signed-off-by: phymbert <pi...@gmail.com>
commit 6e34fd2c908653e9da85e77e86e5996468f23cbe
Author: phymbert <pi...@gmail.com>
Date: 2017-06-28T13:22:45Z
[LOG4J2-1725] Allow pattern to be updated
Signed-off-by: phymbert <pi...@gmail.com>
----
> RollingFileAppender's filePattern not reloaded when using monitorInterval
> -------------------------------------------------------------------------
>
> Key: LOG4J2-1725
> URL: https://issues.apache.org/jira/browse/LOG4J2-1725
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.7
> Reporter: Benjamin Jaton
>
> Using the configuration below:
> {code}<?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="info" monitorInterval="2">
> <Appenders>
> <RollingFile name="MyRollingFile" fileName="/usr/local/apps/testlogging/logs/app.log" filePattern="/usr/local/apps/testlogging/logs/app.log.%i">
> <PatternLayout>
> <Pattern>%d %p %c{1.} [%t] %m%n</Pattern>
> </PatternLayout>
> <Policies>
> <SizeBasedTriggeringPolicy size="100MB"/>
> </Policies>
> <DefaultRolloverStrategy max="10"/>
> </RollingFile>
> </Appenders>
> <Loggers>
> <Root level="info" includeLocation="false">
> <AppenderRef ref="MyRollingFile"/>
> </Root>
> </Loggers>
> </Configuration>{code}
> Updating the filePattern to app.log.%i.zip won't be taken into account dynamically.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)