Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
Description
I tried use OnConsoleStatusListener initialized as it is described in manual (using property logback.statusListenerClass). No expected output appeared. When I was using xml element everthing worked fine. I have looked inside source code to check the difference between initialization in those two cases (property and xml). I found out that for 'property's' way start() is never called and thus status events are never printed out.
You could take a look at ch.qos.logback.classic.util.StatusListenerConfigHelper. Created listener has not Context set and isn't started so it won't print any output during program execution.
Sorry for my bad language.
Best Regards,
Adam