[logback-user] Dropping class package name using PatternLayout
Ceki Gulcu
listid at qos.ch
Wed Nov 12 19:40:15 CET 2008
Hi Silvano,
You could set 1 as an argument for the logger conversion word. In that case the
output of the logger name would be "c.q.l.d.ContextListener". If you wish to
have only the name without the package name prefix, set the option's value to 0
(zero). However, this last feature will be available only in logback version 0.9.12.
Cheers,
Silvano Maffeis wrote:
> Hi.
>
> Is it possible to completely remove the Java package name of a logged
> class using PatternLayout? Meaning, instead of something like
>
> 13:09:30 [main] DEBUG c.q.logback.demo.ContextListener - Classload
> hashcode is 13995234
>
> I would simply like to see
>
> 13:09:30 [main] DEBUG ContextListener - Classload hashcode is 13995234
>
> Regards,
> Silvano
--
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