[logback-dev] [JIRA] Created: (LBCORE-162) Carriage return in PatternLayout in the XML configuration file

Andres Gomez Casanova (JIRA) noreply-jira at qos.ch
Sat Aug 7 13:53:17 CEST 2010


Carriage return in PatternLayout in the XML configuration file
--------------------------------------------------------------

                 Key: LBCORE-162
                 URL: http://jira.qos.ch/browse/LBCORE-162
             Project: logback-core
          Issue Type: Bug
          Components: Joran
    Affects Versions: 0.9.18, 0.9.19, 0.9.24
         Environment: Windows XP but probably all platforms
            Reporter: Andres Gomez Casanova
            Assignee: Logback dev list
            Priority: Minor


Hi,

I used to use the text formatting for the XML files in Eclipse, but sometimes the PatterLayout is too long, and the formatter divides it in two lines.

--- BEFORE FORMAT ---
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
    <pattern> %date{ISO8601} [%thread] %-5level %logger{35} - %message%n </pattern>
</encoder>

--- AFTER FORMAT ---
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
    <pattern> %date{ISO8601} [%thread] %-5level %logger{35} -
     %message%n </pattern>
</encoder>

Then, the output in the ConsoleAppender will have two lines for each message logged.
I think, the configuration reader has to ignore the carriage return in the file (in the middle of the patterLayout) and just only consider the %n.

Thanks.
Best regards


Andrés Gómez Casanova

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