[logback-user] custom levels

Lars Fischer reschifl at googlemail.com
Wed Jul 28 18:40:30 CEST 2010


Hello Ceki,

2010/7/28 Ceki Gülcü <ceki at qos.ch>:
> In logback the Level class is final and cannot be extended. However, you can
> use markers instead. Markers are part of the SLF4J API.

Yes, this is my problem ;)

> What does your custom level do?

The custom levels separate different visibilities on top of the
default levels (something like DebugCore, DebugUser) and are filtered
with a LevelMatchFilter.

But the markers are a better alternative than extending the original level.

Thank you very much!

Regards,
Lars


More information about the Logback-user mailing list