logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Jaton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1725) RollingFileAppender's filePattern not reloaded when using monitorInterval
Date Tue, 06 Dec 2016 23:49:58 GMT

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

Benjamin Jaton commented on LOG4J2-1725:
----------------------------------------

(I corrected the description.)
Adding the .zip extension in the filePattern is not taken into account, the log file still
rolls over to app.log.%i

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