[logback-user] I'm getting the "substitute logger" error message yet my appender still works

Paul Gifford pggifford at gmail.com
Mon Oct 24 22:17:18 CEST 2011


Thanks Ceki,

  I'll update my code to use the status manager.

Regards,

Paul


On Mon, Oct 24, 2011 at 3:05 PM, ceki <ceki at qos.ch> wrote:

> Hi Paul,
>
> Logback components should use the status manager for their internal
> logging.
>
> The fact that your custom appender references a logger will not affect
> the way it works except that the log messages originating from within
> your appender or from one of its dependencies will be discarded.
>
> You have 3 options:
>
> 1) use the status manager for internal messages
> 2) retrieve loggers anew until a real logger instance is returned (and
> not an NOPLogger)
> 3) place your custom appender in another configuration file as
> explained in http://slf4j.org/codes.html#**substituteLogger<http://slf4j.org/codes.html#substituteLogger>
> --
> Ceki
>
> On 24/10/2011 6:36 PM, Paul Gifford wrote:
>
>> Ceki,
>>   I have, many times.  That's why I was confused as to why my logger
>> was working as I thought it would be set to the nop logger.
>> Paul
>>
>>
>  ______________________________**_________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/**listinfo/logback-user<http://mailman.qos.ch/mailman/listinfo/logback-user>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20111024/ec13a43c/attachment.html>


More information about the Logback-user mailing list