Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
Windows XP but probably all platforms
Description
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
</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