
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.

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.

It's a RollingFileAppender. I'm actually not sure if the warning is emitted in this specific case. I was just cleaning up all logback*.xml files of my work project and simply assumed that this would also emit a warning - which is maybe wrong. I thought <layout> was consistently replaced with <encoder> but, again, I may be mistaken... On 10.05.2010, at 14:24, 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@qos.ch http://qos.ch/mailman/listinfo/logback-user

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.

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@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ceki Gülcü
-
Joern Huxhorn