Home » SLF4J-1.5.8 » org.apache.commons » logging » impl » [javadoc | source]
org.apache.commons.logging.impl
public class: LogKitLogger [javadoc | source]
java.lang.Object
   org.apache.commons.logging.impl.LogKitLogger

All Implemented Interfaces:
    Log, Serializable

Implementation of org.apache.commons.logging.Log that wraps the avalon-logkit logging system. Configuration of LogKit is left to the user.

LogKit accepts only String messages. Therefore, this implementation converts object messages into strings by called their toString() method before logging them.

Field Summary
protected transient  Logger logger    Logging goes to this LogKit logger 
protected  String name    Name of this logger 
Constructor:
 public LogKitLogger(String name) 
    Construct LogKitLogger which wraps the LogKit logger with given name.
    Parameters:
    name - log name
Method from org.apache.commons.logging.impl.LogKitLogger Summary:
debug,   debug,   error,   error,   fatal,   fatal,   getLogger,   info,   info,   isDebugEnabled,   isErrorEnabled,   isFatalEnabled,   isInfoEnabled,   isTraceEnabled,   isWarnEnabled,   trace,   trace,   warn,   warn
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.logging.impl.LogKitLogger Detail:
 public  void debug(Object message) 
    Logs a message with org.apache.log.Priority.DEBUG.
 public  void debug(Object message,
    Throwable t) 
    Logs a message with org.apache.log.Priority.DEBUG.
 public  void error(Object message) 
    Logs a message with org.apache.log.Priority.ERROR.
 public  void error(Object message,
    Throwable t) 
    Logs a message with org.apache.log.Priority.ERROR.
 public  void fatal(Object message) 
    Logs a message with org.apache.log.Priority.FATAL_ERROR.
 public  void fatal(Object message,
    Throwable t) 
    Logs a message with org.apache.log.Priority.FATAL_ERROR.
 public Logger getLogger() 

    Return the underlying Logger we are using.

 public  void info(Object message) 
    Logs a message with org.apache.log.Priority.INFO.
 public  void info(Object message,
    Throwable t) 
    Logs a message with org.apache.log.Priority.INFO.
 public boolean isDebugEnabled() 
    Checks whether the LogKit logger will log messages of priority DEBUG.
 public boolean isErrorEnabled() 
    Checks whether the LogKit logger will log messages of priority ERROR.
 public boolean isFatalEnabled() 
    Checks whether the LogKit logger will log messages of priority FATAL_ERROR.
 public boolean isInfoEnabled() 
    Checks whether the LogKit logger will log messages of priority INFO.
 public boolean isTraceEnabled() 
    Checks whether the LogKit logger will log messages of priority DEBUG.
 public boolean isWarnEnabled() 
    Checks whether the LogKit logger will log messages of priority WARN.
 public  void trace(Object message) 
    Logs a message with org.apache.log.Priority.DEBUG.
 public  void trace(Object message,
    Throwable t) 
    Logs a message with org.apache.log.Priority.DEBUG.
 public  void warn(Object message) 
    Logs a message with org.apache.log.Priority.WARN.
 public  void warn(Object message,
    Throwable t) 
    Logs a message with org.apache.log.Priority.WARN.