[logback-user] How to log FROM an appender?
Ceki Gulcu
ceki at qos.ch
Wed Nov 16 19:32:24 CET 2011
On 16.11.2011 18:55, ralph.goers @dslextreme.com wrote:
> Actually, recursion isn't really a problem and is pretty easy to handle.
> The problem is that you are in the middle of configuring your logging
> system and trying to log, so what is supposed to happen to the log
> event? The components to process it aren't fully in place yet. Ceki
> handles that by detecting the attempt to create the logger and
> generating a nastygram.
>
> Ralph
Any recursive call made to a given appender is simply ignored. No
exceptions whatsoever will be thrown. Thus, although not recommended,
appenders *can* make logging calls. However, the recommended approach
for internal logging (messages generated by logback components) is via
the StatusManager.
HTH,
--
Ceki
More information about the Logback-user
mailing list