[logback-user] Why is Logback being configured twice?

Ceki Gülcü ceki at qos.ch
Thu Aug 4 23:19:54 CEST 2011


What happens if that line is present?

On 04/08/2011 11:01 PM, Daniel Serodio (lists) wrote:
> Hello Ceki,
>
> This problem wasn't happening anymore, so I compared the logback.xml I'm
> using now and the one I was using when I posted to the list, and found
> the source of the problem: an encoding parameter for ConsoleAppender
> left from log4j configuration. If I remove this line (marked CAUSE
> below) the problem goes away.
>
> Do you think I should I file a bug report?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration debug="true">
> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender" >
> <param value="UTF-8" name="encoding"/> <!-- CAUSE -->
> <encoder>
> <pattern>%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p [%c] %m%n</pattern>
> </encoder>
> </appender>
> <root level="INFO">
> <appender-ref ref="CONSOLE"/>
> </root>
> </configuration>
>
> Thanks,
> Daniel Serodio


-- 
QOS.ch, main sponsor of cal10n, logback and slf4j open source projects, 
is looking to hire talented software developers. For further details, 
see http://logback.qos.ch/job.html


More information about the Logback-user mailing list