Freidii,
 
use the %M character in your patternlayout...take a look at the PatternLayout javadocs for the complete list.
 
- Tim
 
-----Original Message-----
From: Friedli Beat [UFA AG Her] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 7:22 AM
To: 'LOG4J Users Mailing List'
Subject: How see the methode-name in the Logefile

Currently my log-file-entries look the following:
 
220   ERROR [TestRunner-Thread] datamodel.DataModelKunden - Adresse ist null!
 
---------------
 
I'd like not only to see the class-name but also the methode-name. So that I find out quicker where the problem is. The log-file-entries should look like this:
 
220   ERROR [TestRunner-Thread] datamodel.DataModelKunden.getKundenName() - Adresse ist null!
 
How can I do that?

Mit freundlichen Grüssen

Beat Friedli

 

Reply via email to