[logback-user] custom levels

Ceki Gülcü ceki at qos.ch
Wed Jul 28 17:53:08 CEST 2010


In logback the Level class is final and cannot be extended. However, you 
can use markers instead. Markers are part of the SLF4J API.

What does your custom level do?

On 28/07/2010 5:04 PM, Lars Fischer wrote:
> Hello,
>
> I would like to switch an existing system from log4j to Logback. The
> current system extends org.apache.log4j.Level to define some custom
> additional levels and uses
>
> Logger#log(Priority priority,
>                  Object message)
>
> with the custom Level as priority.
>
> Is there a similar way to extend Logback with additional levels?
>
> Regards,
> Lars


More information about the Logback-user mailing list