[logback-user] Encoder vs. HTMLLayout?
Ceki Gülcü
ceki at qos.ch
Mon May 10 16:07:54 CEST 2010
The code which emits the warning is in OutputStreamAppender's setLayout
method. To avoid the warning you have to write
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="ch.qos.logback.classic.html.HTMLLayout">
<pattern>%-5level%d{HH:mm:ss.SSS}%logger{36}%msg%thread</pattern>
</layout>
</encoder>
I'll update the documentation for layouts other than PatternLayout.
On 10/05/2010 2:24 PM, Ceki Gülcü wrote:
>
> Hello Joern,
>
> What type is the enclosing appender?
>
> On 10/05/2010 2:18 PM, Joern Huxhorn wrote:
>> What is the correct replacement for
>>
>> <layout class="ch.qos.logback.classic.html.HTMLLayout">
>> <pattern>%-5level%d{HH:mm:ss.SSS}%logger{36}%msg%thread</pattern>
>> </layout>
>>
>> I assume there is some replacement since Logback emits a warning at
>> the moment.
>> http://logback.qos.ch/codes.html#layoutInsteadOfEncoder
>>
>> I couldn't find one, though.
>>
>> Cheers,
>> Joern.
> _______________________________________________
More information about the Logback-user
mailing list