-----------
The elements of your specified pattern basically do the following:

%d{ABSOLUTE} - Formats the value of LoggingEvent.timestamp (also  
available using LoggingEvent.getTimestamp() in log4j 1.3).
%p - Formats the value of LoggingEvent.level (LoggingEvent.getLevel())
%l - Formats the value of LoggingEvent.getLocationInfo().
%c - Formats the value of LoggingEvent.categoryName (or  
LoggingEvent.getLoggerName()).
%m - Formats the value of LoggingEvent.getMessage(). 
---------------

Thanks for replies, guys, i've figured it out. The key is to call methods on
this one:

LoggingEvent.getLocationInformation().

There are methods that when called on the object above, return the line
number (logEvent.getLocationInformation().getLineNumber()) method name
(logEvent.getLocationInformation().getMethodName()), full information
(logEvent.getLocationInformation().fullInfo) and so forth. 

--
View this message in context: 
http://www.nabble.com/Extracting+information+from+log4j+messages-t1704397.html#a4639874
Sent from the Log4j - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to