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:

>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.

Ceki  For log4j documentation consider "The complete log4j manual"

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

View raw message