Hello Michel,

The problem is due to a bug in the way logback-core escapes special characters in filename patterns.

I have started fixing this bug. I'll keep you posted.
See also http://jira.qos.ch/browse/LBCLASSIC-56

Michel Collette wrote:
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.

--
Ceki Gülcü
QOS.ch is looking to hire talented developers located in Switzerland.
If interested, please contact c e k i AT q o s . c h
_______________________________________________
Logback-user mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-user

Reply via email to