
9 Jun
2008
9 Jun
'08
1:27 a.m.
Hello, I'm been unsuccessful at using the RollingFileAppender with a FixedWindowRollingPolicy that has this FileNamePattern: <FileNamePattern>${user.home}/Client%i.log</FileNamePattern> "${user.home}/Client%i.log" gets correctly expanded to "C:\\Documents and Settings\\Michel/Client%i.log" when it's passed to the FixedWindowRollingPolicy constructor. The problem starts once the filename gets parsed by ch.qos.logback.core.pattern.parser.Parser: the filename becomes "C:ocuments and Settingsichel/Client". File rotations then fails (as would be expected) when trying to rename the current log to "C:ocuments and Settingsichel/Client1.log" Is there a way to configure logback to correctly deal with the "\\" used in windows? Thanks.