Mark Lybarger wrote:

Sorry, I've searched around a bit, but ovbiously not in the right places. I'm looking to get my logging to automatically provide the method signature after the class name. Currently, I have:

        log.debug( "doPerform (data, context) - complete" );
Is it possible to get the logger (log4j/commons-logger) to display the method 
signature automatically? how?

I am reasonably certain that log4j provides for this (at least the method name) and I assume it could be configured via the appropriate pattern, however I do recall that log4j strongly discourages this because it imposes a rather heavy performance penalty. The more efficient approach would be the one you are currently using.

Scott

--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au



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



Reply via email to