2 messages in org.apache.logging.log4j-userLayout that includes the name of the ...
FromSent OnAttachments
Brendan D. ReekieJun 23, 2004 7:37 am 
Larry YoungJun 23, 2004 12:59 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Layout that includes the name of the applicationActions...
From:Brendan D. Reekie (BD@rsssolutions.com)
Date:Jun 23, 2004 7: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