avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: avalon/src/java/org/apache/avalon/framework/logger Log4JLogger.java
Date Tue, 27 May 2003 08:02:16 GMT
donaldp     2003/05/27 01:02:16

  Modified:    src/java/org/apache/avalon/framework/logger Log4JLogger.java
  Log:
  Update to specify the name of facade so that automatically determined logger callers are
accurate
  
  Submitted By: Peter Severin <pse@infologic.fr>
  
  Revision  Changes    Path
  1.17      +17 -11    avalon/src/java/org/apache/avalon/framework/logger/Log4JLogger.java
  
  Index: Log4JLogger.java
  ===================================================================
  RCS file: /home/cvs/avalon/src/java/org/apache/avalon/framework/logger/Log4JLogger.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Log4JLogger.java	11 Feb 2003 15:58:41 -0000	1.16
  +++ Log4JLogger.java	27 May 2003 08:02:16 -0000	1.17
  @@ -65,6 +65,12 @@
   public final class Log4JLogger
       implements Logger
   {
  +    /**
  +     * Constant for name of class to use when recording caller
  +     * of log method.
  +     */
  +    private static final String FQCN = Log4JLogger.class.getName();
  +
       //underlying implementation
       private final org.apache.log4j.Logger m_logger;
   
  @@ -85,7 +91,7 @@
        */
       public final void debug( final String message )
       {
  -        m_logger.debug( message );
  +        m_logger.log( FQCN, Level.DEBUG, message, null );
       }
   
       /**
  @@ -96,7 +102,7 @@
        */
       public final void debug( final String message, final Throwable throwable )
       {
  -        m_logger.debug( message, throwable );
  +        m_logger.log( FQCN, Level.DEBUG, message, throwable );
       }
   
       /**
  @@ -116,7 +122,7 @@
        */
       public final void info( final String message )
       {
  -        m_logger.info( message );
  +        m_logger.log( FQCN, Level.INFO, message, null );
       }
   
       /**
  @@ -127,7 +133,7 @@
        */
       public final void info( final String message, final Throwable throwable )
       {
  -        m_logger.info( message, throwable );
  +        m_logger.log( FQCN, Level.INFO, message, throwable );
       }
   
       /**
  @@ -147,7 +153,7 @@
        */
       public final void warn( final String message )
       {
  -        m_logger.warn( message );
  +        m_logger.log( FQCN, Level.WARN, message, null );
       }
   
       /**
  @@ -158,7 +164,7 @@
        */
       public final void warn( final String message, final Throwable throwable )
       {
  -        m_logger.warn( message, throwable );
  +        m_logger.log( FQCN, Level.WARN, message, throwable );
       }
   
       /**
  @@ -178,7 +184,7 @@
        */
       public final void error( final String message )
       {
  -        m_logger.error( message );
  +        m_logger.log( FQCN, Level.ERROR, message, null );
       }
   
       /**
  @@ -189,7 +195,7 @@
        */
       public final void error( final String message, final Throwable throwable )
       {
  -        m_logger.error( message, throwable );
  +        m_logger.log( FQCN, Level.ERROR, message, throwable );
       }
   
       /**
  @@ -209,7 +215,7 @@
        */
       public final void fatalError( final String message )
       {
  -        m_logger.fatal( message );
  +        m_logger.log( FQCN, Level.FATAL, message, null );
       }
   
       /**
  @@ -220,7 +226,7 @@
        */
       public final void fatalError( final String message, final Throwable throwable )
       {
  -        m_logger.fatal( message, throwable );
  +        m_logger.log( FQCN, Level.ERROR, message, throwable );
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message