[logback-user] Encoder vs. HTMLLayout?

Joern Huxhorn jhuxhorn at googlemail.com
Mon May 10 16:30:33 CEST 2010


Thanks!

On 10.05.2010, at 16:07, Ceki Gülcü wrote:

> 
> 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.
>> _______________________________________________
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list