[logback-dev] [JIRA] Resolved: (LBCLASSIC-56) Dealing with the '\\' during substitution

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Wed Oct 29 12:36:21 CET 2008

     [ http://jira.qos.ch/browse/LBCLASSIC-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCLASSIC-56.

    Fix Version/s: 0.9.10
       Resolution: Fixed

resolved in revision 1706.

> Dealing with the '\\' during substitution
> -----------------------------------------
>                 Key: LBCLASSIC-56
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-56
>             Project: logback-classic
>          Issue Type: Bug
>            Reporter: Ceki Gulcu
>            Assignee: Logback dev list
>             Fix For: 0.9.10
> 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?
> End of quote
> For original report see: http://www.qos.ch/pipermail/logback-user/2008-June/000476.html

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list