[
https://issues.apache.org/jira/browse/LOG4J2-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14174769#comment-14174769
]
Remko Popma edited comment on LOG4J2-875 at 10/18/15 1:39 PM:
--------------------------------------------------------------
the same.
note that "fileName" Attribute is working, but not "filePattern"
{code}
<RollingFile name="Rolling-${ctx:log.uid}-${ctx:caller}"
fileName =
"${ctx:log.dir}/${ctx:remoteDnsName}/${ctx:log.uid}_${filename}"
filePattern =
"${ctx:log.dir}/${ctx:remoteDnsName}/${ctx:log.uid}_backup-%d{yyyy-MM-dd}-%i.log"
[...]
{code}
was (Author: luigi):
the same.
note that "fileName" Attribute is working, but not "filePattern"
<RollingFile name="Rolling-${ctx:log.uid}-${ctx:caller}"
fileName =
"${ctx:log.dir}/${ctx:remoteDnsName}/${ctx:log.uid}_${filename}"
filePattern =
"${ctx:log.dir}/${ctx:remoteDnsName}/${ctx:log.uid}_backup-%d{yyyy-MM-dd}-%i.log"
[...]
> Log file getting overwritten on Microsoft Windows Maschines
> -----------------------------------------------------------
>
> Key: LOG4J2-875
> URL: https://issues.apache.org/jira/browse/LOG4J2-875
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.0
> Environment: Java 7, Tomcat 7, Windows Server 2012 R2
> Reporter: Luigi Alice
> Priority: Critical
> Attachments: wrong_path.png
>
>
> A problem with slashes?
> does not work since version 2.0, but in rc1:
> filePattern =
> "C:\Server\Webapps\sql2008-test\WEB-INF/log/$\{ctx:remoteDnsName}/$\{ctx:log.uid}_app-%d\{yyyy-MM-dd}-%i.log"
> works:
> filePattern =
> "C:/Server/Webapps/sql2008-test/WEB-INF/log/$\{ctx:remoteDnsName}/$\{ctx:log.uid}_app-%d\{yyyy-MM-dd}-%i.log"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]