You could always try to add it to Jira as an enhancement request, and see if it gets accepted. If you post a patch that actually implements your enhancement, you have a much better chance of having it accepted. (*Chris*)
On Tue, Sep 11, 2012 at 3:14 AM, Seeta Vadali <[email protected]> wrote: > Hi Chris, > > May be I am asking stupid question. Why can't we read property > value > from xml and replace '\' with '/'. Except stupid windows everyone else use > same standards, so there won't be any problem I guess. > > If we add escape attribute to property tag then our life will be > very > easy. Something like this > > <property name="log.dir" value="d:\seeta\log" escape="false"/> > > Regards, > Seeta > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of [email protected] > Sent: 11 September 2012 12:00 > To: [email protected] > Subject: Logback-user Digest, Vol 12, Issue 11 > > Send Logback-user mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.qos.ch/mailman/listinfo/logback-user > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific than > "Re: > Contents of Logback-user digest..." > > > Today's Topics: > > 1. Re: [Question] fileNamePattern in logback.xml (Chris Pratt) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 10 Sep 2012 08:42:45 -0700 > From: Chris Pratt <[email protected]> > To: logback users list <[email protected]> > Subject: Re: [logback-user] [Question] fileNamePattern in logback.xml > Message-ID: > < > caaldy0z5foppzwspewcpgyvcpeml+esemoosm+sdenx37+j...@mail.gmail.com> > Content-Type: text/plain; charset="windows-1252" > > There's really nothing to fix, it's a Java limitation. The \ has special > meaning, and to escape it you MUST use \\. > (*Chris*) > > On Mon, Sep 10, 2012 at 3:44 AM, Seeta Vadali <[email protected]> wrote: > > > Dear Logback team,**** > > > > ** ** > > > > First of all I am not very sure is it correct way to ask > > questions regarding logback. I couldn?t find any forum. I thought of > > creating bug in JIRA (http://jira.qos.ch/browse/LOGBACK) but I don?t > > have rights ?. So I am dropping mail to given mail id? **** > > > > ** ** > > > > Coming to bug : **** > > > > ------------------ **** > > > > I am trying to optimize logback.xml file in our environment. > > Logging directory location we are specifying in more than one location > > so I am trying to create a variable ( property ) to hold log directory > > and reuse. Now problem is if path is ?D:\seeta\log? then logback is > > stripping out all back ward slashes and giving it as ?D:seetalog?. I > > know if I use forward slash or double slash it works fine but I cannot > > control the user who use my tool. Can you please help us in fixing it? > > **** > > > > ** ** > > > > Working scenario **** > > > > =============**** > > > > <configuration>**** > > > > ?**** > > > > <fileNamePattern> > > d:\seeta\log\cd_core.%d{yyyy-MM-dd}.log</fileNamePattern>**** > > > > ?**** > > > > </configuration>**** > > > > **** > > > > NON-Working Scenario**** > > > > ==============**** > > > > <configuration>**** > > > > ?**** > > > > <property name="log.dir" value="d:\seeta\log"/>**** > > > > ?**** > > > > > > <fileNamePattern>${log.dir}\cd_core.%d{yyyy-MM-dd}.log</fileNamePatter > > n>** > > ** > > > > ?**** > > > > </configuration>**** > > > > ** ** > > > > ** ** > > > > ** ** > > > > ** ** > > > > NOTE : I have attached logback.jar and configuration files. Here > > {{logback_working.xml}} is existing configuration and trying to modify > > to {{ logback_NOT_working.xml}}**** > > > > ** ** > > > > Regards,**** > > > > Seeta Vadali**** > > > > ** ** > > > > > > > > www.sdl.com > > <http://www.sdl.com/?utm_source=Email&utm_medium=Email%2BSignature&utm > > _campaign=SDL%2BStandard%2BEmail%2BSignature> > > > > *SDL PLC confidential, all rights reserved.* If you are not the > > intended recipient of this mail SDL requests and requires that you > > delete it without acting upon or copying any of its contents, and we > > further request that you advise us. > > SDL PLC is a public limited company registered in England and Wales. > > Registered number: 02675207. > > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire > > SL6 7DY, UK. > > > > _______________________________________________ > > Logback-user mailing list > > [email protected] > > http://mailman.qos.ch/mailman/listinfo/logback-user > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > < > http://mailman.qos.ch/pipermail/logback-user/attachments/20120910/9effdd3f/a > ttachment-0001.html<http://mailman.qos.ch/pipermail/logback-user/attachments/20120910/9effdd3f/a%0Attachment-0001.html> > > > > ------------------------------ > > _______________________________________________ > Logback-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/logback-user > > End of Logback-user Digest, Vol 12, Issue 11 > ******************************************** > _______________________________________________ > Logback-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/logback-user >
_______________________________________________ Logback-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/logback-user
