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

Ralph Goers edited comment on LOG4J2-1201 at 11/19/15 12:33 AM:
----------------------------------------------------------------

See LOG4J2-568 and LOG4J2-381.  There is a patch in LOG4J2-381 that I am 
testing as I realized it addresses a problem I am going to have with my 
implementation of the CronTriggeringPolicy. Unfortunately, that won't change 
the behavior of this issue - it only addresses the triggering policy and 
rollover strategy.


was (Author: [email protected]):
See LOG4J2-568 and LOG4J2-381.  There is a patch in LOG4J2-381 that I am 
testing as I realized it addresses a problem I am going to have with my 
implementation of the CronTriggeringPolicy.

> Changes to the "filePattern" property of <RollingFile> is not picked up 
> during refresh
> --------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-1201
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1201
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Linux
>            Reporter: Jason Hong
>            Priority: Minor
>
> I'm not sure if this is intentional but it seems like the "filePattern" 
> property of  <RollingFile> is not picked up during the refresh interval 
> unless "fileName" is modified.
> To reproduce:
> 1.  In log4j2.xml, change the "filePattern" property to a new filename and 
> change the rollover policy (eg sized based policy to 1KB) to a setting that 
> will trigger easily.
> 2.  Wait until the "refreshInterval" passes
> 3.  Generate logs until the rollover policy is triggered and an archive file 
> is written.
> Expected Result:
> The archive file should be the modified filename.
> Actual Result:
> The archive file is still using the old filename.
> Once the "fileName" parameter is modified, both "fileName" and 
> "fileParameter" are refreshed.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to