[logback-user] Custom appender and layout issue

ceki ceki at qos.ch
Thu Nov 10 17:38:08 CET 2011


Hopefully, reading the two links I mentioned in my previous message will 
make things clearer.

On 10.11.2011 17:02, Adam Gordon wrote:
> I was not.  I'm currently sitting on an airplane so I cannot look more
> closely.  is this my issue?  I have only one appender defined so I'm a
> bit confused as to any implicit hierarchy.
>
> --adam
>
> On Nov 10, 2011, at 0:27, ceki<ceki at qos.ch>  wrote:
>
>>
>>
>> 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



More information about the Logback-user mailing list