
16 Nov
2011
16 Nov
'11
6:32 p.m.
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