[logback-user] How to log FROM an appender?
Ceki Gulcu
ceki at qos.ch
Wed Nov 16 07:53:18 CET 2011
Hi Steve,
Logback components, including appenders, should use the status
manager. If you look at logback code you should see invocations of
addInfo, addWarn or addError methods strewn throughout the code.
--
Ceki
On 12.11.2011 23:14, Steve Cohen wrote:
> We have a custom appender that may itself need to issue logging
> statements. But placing a logger in such a class causes various
> exceptions on initialization and loading. So we are resorting to
> System.out.println for lack of a better solution.
>
> I suppose there must be a better way.
> What would that be?
More information about the Logback-user
mailing list