Sweet. Worked like a charm. Thanks.
Ceki Gulcu wrote: > > > You can mark a logging statement as "ALWAYS" and have a turbo filter act > upon it. > > For more details on TurboFilters please see > > http://logback.qos.ch/manual/filters.html#TurboFilter > > HTH, > > laboo wrote: >> I'm looking for a way to always log a message regardless of the current >> level >> of logger. >> >> My application allows the user to change the level via JMX and I always >> want >> to log a message that says, "The level was changed from X to Y". >> >> I *could* accomplish this by specifying the highest level, ERROR, but >> it's >> not an error, and I don't want it to show up as one. >> >> In log4j, I was able to accomplish this by using the log() method with >> level >> OFF (strangely enough). I tried doing something similar with logback's >> level >> ALL, but it's not accepted as valid level to the log() method. >> >> Is there a different/better way to accomplish this? >> >> Thanks, >> >> Laboo >> > > -- > Ceki Gülcü > Logback: The reliable, generic, fast and flexible logging framework for > Java. > http://logback.qos.ch > _______________________________________________ > Logback-user mailing list > [email protected] > http://qos.ch/mailman/listinfo/logback-user > > -- View this message in context: http://www.nabble.com/Always-log%2C-regardless-of-level%2C-but-not-as-ERROR-tp25454113p25461014.html Sent from the Logback User mailing list archive at Nabble.com. _______________________________________________ Logback-user mailing list [email protected] http://qos.ch/mailman/listinfo/logback-user
