
thanks for your reply again, I've read the page before, so that means I cannot "suppress" logback warnings and errors go to stdout, right? The behaviour is reasonable, I just was wondering if it is possible. regards, christian! On Mon, Mar 22, 2010 at 5:00 PM, Ceki Gülcü <ceki@qos.ch> wrote:
OnConsoleStatusListener is not registered by default.
Please also read the section entitled "Automatic printing of status messages in case of warning or errors" in http://logback.qos.ch/manual/configuration.html
On 22/03/2010 4:55 PM, Christian Migowski wrote:
Hi Ceki,
thanks for your reply, it was very helpful. I did as you wrote, but it seems that the OnConsoleStatusListener is still "registered", messages go still to stdout via this listener, is there a way to "unregister" this listener in the logback.xml config file?
I'm new to logback and I am very excited (? begeistert) of all the capabilities and flexibility it offers, it is great!
thanks again, regards, christian
On Mon, Mar 22, 2010 at 3:47 PM, Ceki Gülcü<ceki@qos.ch> wrote:
Hello Christian,
You can register a status listener which will be notified anytime a new status message is created. See [1]. Logback ships with a listener called OnConsoleStatusListener which prints status messages on the console. It is installed as
<configuration> <statusListener class="ch.qos.logback.core.status.OnConsoleStatusListener" /> ... the rest of the configuration file </configuration>
Its installation is highly recommended. You could fairly easily develop your own listener which writes to a file.
HTH,
[1] http://logback.qos.ch/manual/configuration.html#statusListener
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user