logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject RE: How to get Method Name and Class Name
Date Wed, 30 Apr 2003 12:13:37 GMT

The caller is the wrapper itself.

For example:

package com.wombat;
public class Wrapper {

   static String FQCN = "com.wombat.Wrapper";

   Logger logger; // the logger being wrapped
   ....

   publiv void debug(Object msg) {
      logger.log(FQCN, Level.DEBUG, msg. null);
   }
   ....
}

At 08:06 AM 4/30/2003 -0400, you wrote:


>Ceki,
>
>Does this then mean that his wrapper needs to accept the caller's FQCN on
>his logger methods, and pass them down into the Log4j method described
>below?  Or is the "caller" you mention here the FQCN of the wrapper itself.
>
>Mike
>
>
>--

Ceki  For log4j documentation consider "The complete log4j manual"
       http://www.qos.ch/shop/products/clm_t.jsp 


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


Mime
View raw message