[ https://issues.apache.org/jira/browse/LOG4J2-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Artur Burnos updated LOG4J2-872: -------------------------------- Comment: was deleted (was: Configuration file) > Property substitution works incorrectly for filePattern in RollingFile > appender > ------------------------------------------------------------------------------- > > Key: LOG4J2-872 > URL: https://issues.apache.org/jira/browse/LOG4J2-872 > Project: Log4j 2 > Issue Type: Bug > Components: Appenders > Affects Versions: 2.0.2 > Environment: Win 7 64, Tomcat 7.0.23, Log4j2 2.0.2 > Reporter: Artur Burnos > Priority: Minor > Attachments: log4j2.xml > > > I am trying to configure RollingFile appender in tomcat 7.0.23 with > log4j2(2.0.2) with 10 log files. > I am using in the filePattern the ${sys:catalina.base}, it doesn't work and > log files are placed in tomcat/bin/${sys:catalina.base}/ directory. > The interesting part is that the first log file (without a number) is created > ok, under tomcat/logs - which means it succeeds to map the filename attribute > to a real path. > When I replace ${sys:catalina.base} with > filePattern="C:/apache-tomcat-7.0.23/logs/app.%i.log" it works. > Meaning that the filePattern is not interpreted properly. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org