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

Paul Gifford pggifford at gmail.com
Mon Oct 24 18:36:37 CEST 2011


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




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

>  On 24/10/2011 5:33 PM, Paul Gifford wrote:
>
>> Hi,
>>   I've written a custom appender that extends
>> AppenderBase<ILoggingEvent> and put it in a library.  I have a webapp
>> that uses the custom appender.  When I deploy that webapp to Tomcat I
>> get the SLF4J error message "The following loggers will not work because
>> they were created during the default configuration phase of the
>> underlying logging system."  The loggers listed are my custom appender
>> plus the Spring JDBC classes the appender depends on (my appender logs
>> to a table).
>>   My appender, however, works just fine.  I get entries in my table
>> just as expected.
>>   Is this error message something to be concerned about or am I
>> receiving it in error?
>> Thanks,
>> Paul
>>
>
> Hi Paul,
>
> Have you read http://slf4j.org/codes.html#**substituteLogger<http://slf4j.org/codes.html#substituteLogger> ?
>
> --
> Ceki
> http://twitter.com/#!/ceki
>
> ______________________________**_________________
> 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/84c906ce/attachment.html>


More information about the Logback-user mailing list