[logback-user] Error counter appender

Ceki Gulcu ceki at qos.ch
Thu Feb 26 14:07:29 CET 2009


Lukas,

I forgot to mention this, but layouts are optional. If your appener
does not need it, you don't actually need to set a layout. You can
just leave the layout to be null. In ErrorCounterAppender modify the
start() to become:

@Override
public void start() {
   super.start();
}

If you do that, you will no longer need a layout.

Lukas Zapletal wrote:
> Creating my "EmptyLayout" helped.
> 
> Thank you a lot.
> 
> LZ
> 
> 
> Lukas Zapletal (gmail) wrote:
>> Great, thank you.
>>
>> Is there somethink like "null" layout in the head distribution? I do not
>> need that. Well I will create one...
>>
>> Thank you I hope it will help.
>>

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch


More information about the Logback-user mailing list