
17 Jun
2009
17 Jun
'09
7:37 a.m.
Hello Leung, The existing levels in logback are derived from the SLF4J API and as such are final. However, SLF4J allows for a different extension point, namely Marker. Markers can be used to create the equivalent of new levels and much more. Once you have markers in your code, you can apply special treatment of log statements with markers using TurboFilters [1]. HTH, [1] http://logback.qos.ch/manual/filters.html#TurboFilter Trevor Leung wrote:
Hi,
Is it possible to add one more log level, say, Fatal, above Error?
I would like too seek your advice for the most convenient insert point.
Thanks,
Leung Wang Hei
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch