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

Arthur Blake blakesys at yahoo.com
Thu Jun 5 14:25:36 CEST 2008

Unfortunately there isn't...
I asked the same question almost a year ago:

See http://marc.info/?l=logback-user&m=118426697600168&w=2

----- Original Message ----
From: Silvano Maffeis <silvano at maffeis.com>
To: logback-user at qos.ch
Sent: Thursday, June 5, 2008 7:42:25 AM
Subject: [logback-user] logback equivalent of %c{1} in log4j?


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 ?

Logback-user mailing list
Logback-user at qos.ch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20080605/3768a63f/attachment.htm 

More information about the Logback-user mailing list