[logback-user] Oner more log level
Ceki Gulcu
ceki at qos.ch
Wed Jun 17 09:37:05 CEST 2009
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
More information about the Logback-user
mailing list