[logback-user] Custom appender and layout issue

ceki ceki at qos.ch
Thu Nov 10 08:27:14 CET 2011



Are you aware of appender additivity?

http://logback.qos.ch/manual/architecture.html#additivity
http://logback.qos.ch/manual/configuration.html#cumulative

On 10.11.2011 05:44, Adam Gordon wrote:
> Here you go: git://github.com/icfantv/color-logback.git
>
> Thanks.
>
> --a
>
> ------------------------------------------------------------------------
> adam.n.gordon at gmail.com <mailto:adam.n.gordon at gmail.com>
> http://gordonizer.com
>
>
>
> On Nov 9, 2011, at 5:04 PM, ceki wrote:
>
>>
>> It's hard to say without looking at the actual code. Can you place
>> your code in github?
>>
>> --
>> Ceki
>> http://twitter.com/#!/ceki
>>
>> 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

> http://mailman.qos.ch/mailman/listinfo/logback-user


-- 
Ceki
http://twitter.com/#!/ceki


More information about the Logback-user mailing list