Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.2
-
Development machine Windows 7
Description
With following log configuration
<RollingFile name="RollingFile" fileName="${sys:user.home}/logs/app.log" filePattern="${sys:user.home}/logs/app-%d{MM-dd-yyyy}.log"> <PatternLayout> <pattern>%d %p %c{1.} [%t] %m%n</pattern> </PatternLayout> <TimeBasedTriggeringPolicy /> </RollingFile>
When start, the file name is created correctly (C:\user/logs/app.log) but when the file will rotate with file pattern, the path name is wrong. The system property user.home doesn't has slashes. C:user/logs/app-0915-2014.log
Attachments
Issue Links
- is broken by
-
LOG4J2-682 Special characters (tab and so on) in PatternLayout do not work
- Closed
- is duplicated by
-
LOG4J2-755 Log File not rollover in windows tomcat
- Closed
-
LOG4J2-877 RollingFile ignoring ${sys:user.home} in filePattern which is working correct in fileName
- Closed