[ 
http://jira.qos.ch/browse/LBCLASSIC-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10597#action_10597
 ] 

Ceki Gulcu commented on LBCLASSIC-56:
-------------------------------------

Looking at the code, it looks like the EscapeUtil.escape method is used to do 
espace handling within the TokenStream class. It is not clear why one would 
want to escape tabs and new lines within patterns used as file names. 

Put differently, while escape handling makes sense within a pattern converter 
used within PatternLayout, it does *not* makes sense within patterns used for 
file names. 

> 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
>
> QUOTE
> 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

        
_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to