Hello

I'd like to know if there's a way to extract detailed information from the
message that is generated with the defined pattern. I'm aware of
getThreadName(), getMessage() methods and so forth. However, my layout
formats the message with following pattern: %d{ABSOLUTE} %5p (%l) - [%c] -
%m%n. The message looks like this:

14:42:42,618  INFO (test.Test.main(Test.java:18)) - [test.Test] - BLAH BLAH

for the method call

logger.info("BLAH BLAH");
However, getMessage method will simply return "BLAH BLAH".

So, basically, through patterns I can get detailed information of what
happened, when it happened, and where it happened. Can I get these
information (method, package, line number) through log4j API as well?


--
View this message in context: 
http://www.nabble.com/Extracting+information+from+log4j+messages-t1704397.html#a4626356
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