2 messages in org.apache.logging.log4j-userLayout that includes the name of the ...
FromSent OnAttachments
Brendan D. Reekie23 Jun 2004 07:37 
Larry Young23 Jun 2004 12:59 
Subject:Layout that includes the name of the application
From:Brendan D. Reekie (BD@rsssolutions.com)
Date:06/23/2004 07:37:13 AM
List:org.apache.logging.log4j-user

I've perused through the online documents and FAQ's and haven't found a way if it's possible to include the name of the class that the JVM executed (the main class).

For example if class Foo has the main() method and calls into class Bar that contains a logging message. Is it possible to include Foo in the layout of the logging message? I've tried combinations of %C or %F but it only reports Bar.

This would be useful primary from our unittest perspective of understanding what unittest was running that triggered off the log messages.

Thanks in advance,

Brendan Reekie

RSS Solutions Inc.

77 Wellington Street South,

Kitchener, ON.

N2G 2E6

Voice: (519) 746-7200 x 239

1-888-330-7314 x 239

Fax: (519) 746-8727