You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Mark Lybarger <Ma...@CBC-Companies.com> on 2004/02/05 14:40:00 UTC

Turbine Logging - method signatures

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?

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004
 


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Turbine Logging - method signatures

Posted by Scott Eade <se...@backstagetech.com.au>.
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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org