[logback-user] Custom appender and layout issue

ceki ceki at qos.ch
Thu Nov 10 01:04:39 CET 2011

It's hard to say without looking at the actual code. Can you place your 
code in github?


On 10.11.2011 00:50, Adam Gordon wrote:
> That worked.  My custom encoder is doing everything I want and more.
>   For some reason, it looks like Logback is calling the
> doEncode(ILoggingEvent) twice as the log messages are showing up in
> duplicate.  I've modified my XML to use the stock RollingFileAppender
> and my custom encoder.  Any ideas?  My encoder is definitely only
> calling the getFormattedMessage(...) method and writing it to the output
> stream once.  Thanks.
> --adam

More information about the Logback-user mailing list