[logback-user] Problem with FileNamePattern that includes ${user.home} on windows
Ceki Gulcu
listid at qos.ch
Mon Jul 14 22:21:43 CEST 2008
Hi Michel,
Thank you for reporting this problem in precise detail. It has been fixed in
revision 1706. See [1] and [2] for more details.
Cheers,
[1] http://svn.qos.ch/viewvc?root=svn&revision=1706&pathrev=1706&view=rev
[2] 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 ceki at qos.ch
More information about the Logback-user
mailing list