[logback-user] logback equivalent of %c{1} in log4j?

Silvano Maffeis silvano at maffeis.com
Thu Jun 5 13:42:25 CEST 2008


In my logs I would like to see only the name of the class issuing the
log statement,
without any package information. In log4j I use %c{1} for that. In
logback I tried
various patterns, such as %logger{30}, but the best I can get is
the abbreviated package name in front of the class name, e.g.,  something like

Is there a pattern for getting only the class name without any package
information ?


More information about the Logback-user mailing list