org.apache.shale.remoting.logger
Class CommonsLogger

java.lang.Object
  extended by org.apache.shale.remoting.logger.AbstractLogger
      extended by org.apache.shale.remoting.logger.CommonsLogger
All Implemented Interfaces:
Logger

public final class CommonsLogger
extends AbstractLogger

Implementation of Logger that interacts with the Apache Jakarta Commons Logging APIs.


Constructor Summary
CommonsLogger()
           
 
Method Summary
 void debug(String name, String message, Throwable exception, Object[] params)
          

Log a message at debug severity.

 void error(String name, String message, Throwable exception, Object[] params)
          

Log a message at error severity.

 void fatal(String name, String message, Throwable exception, Object[] params)
          

Log a message at fatal severity.

 void info(String name, String message, Throwable exception, Object[] params)
          

Log a message at info severity.

 boolean isDebugEnabled(String name)
          

Is debug level debugging enabled on the specified logger?

 boolean isErrorEnabled(String name)
          

Is error level debugging enabled on the specified logger?

 boolean isFatalEnabled(String name)
          

Is fatal level debugging enabled on the specified logger?

 boolean isInfoEnabled(String name)
          

Is info level debugging enabled on the specified logger?

 boolean isTraceEnabled(String name)
          

Is trace level debugging enabled on the specified logger?

 boolean isWarnEnabled(String name)
          

Is warning level debugging enabled on the specified logger?

 void trace(String name, String message, Throwable exception, Object[] params)
          

Log a message at trace severity.

 void warn(String name, String message, Throwable exception, Object[] params)
          

Log a message at warning severity.

 
Methods inherited from class org.apache.shale.remoting.logger.AbstractLogger
message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsLogger

public CommonsLogger()
Method Detail

isTraceEnabled

public boolean isTraceEnabled(String name)

Is trace level debugging enabled on the specified logger?

Parameters:
name - Name of the logger to check

isDebugEnabled

public boolean isDebugEnabled(String name)

Is debug level debugging enabled on the specified logger?

Parameters:
name - Name of the logger to check

isInfoEnabled

public boolean isInfoEnabled(String name)

Is info level debugging enabled on the specified logger?

Parameters:
name - Name of the logger to check

isWarnEnabled

public boolean isWarnEnabled(String name)

Is warning level debugging enabled on the specified logger?

Parameters:
name - Name of the logger to check

isErrorEnabled

public boolean isErrorEnabled(String name)

Is error level debugging enabled on the specified logger?

Parameters:
name - Name of the logger to check

isFatalEnabled

public boolean isFatalEnabled(String name)

Is fatal level debugging enabled on the specified logger?

Parameters:
name - Name of the logger to check

trace

public void trace(String name,
                  String message,
                  Throwable exception,
                  Object[] params)

Log a message at trace severity.

Parameters:
name - Name of the logger to use
message - Text message to record (treated as a message format if the params argument is not null)
exception - Exception to report, or null for none
params - Message4 format replacement parameters, or null for none

debug

public void debug(String name,
                  String message,
                  Throwable exception,
                  Object[] params)

Log a message at debug severity.

Parameters:
name - Name of the logger to use
message - Text message to record (treated as a message format if the params argument is not null)
exception - Exception to report, or null for none
params - Message4 format replacement parameters, or null for none

info

public void info(String name,
                 String message,
                 Throwable exception,
                 Object[] params)

Log a message at info severity.

Parameters:
name - Name of the logger to use
message - Text message to record (treated as a message format if the params argument is not null)
exception - Exception to report, or null for none
params - Message4 format replacement parameters, or null for none

warn

public void warn(String name,
                 String message,
                 Throwable exception,
                 Object[] params)

Log a message at warning severity.

Parameters:
name - Name of the logger to use
message - Text message to record (treated as a message format if the params argument is not null)
exception - Exception to report, or null for none
params - Message4 format replacement parameters, or null for none

error

public void error(String name,
                  String message,
                  Throwable exception,
                  Object[] params)

Log a message at error severity.

Parameters:
name - Name of the logger to use
message - Text message to record (treated as a message format if the params argument is not null)
exception - Exception to report, or null for none
params - Message4 format replacement parameters, or null for none

fatal

public void fatal(String name,
                  String message,
                  Throwable exception,
                  Object[] params)

Log a message at fatal severity.

Parameters:
name - Name of the logger to use
message - Text message to record (treated as a message format if the params argument is not null)
exception - Exception to report, or null for none
params - Message4 format replacement parameters, or null for none


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.