Save This Page
Home » SLF4J-1.5.8 » org.apache » log4j » [javadoc | source]
org.apache.log4j
public class: Category [javadoc | source]
java.lang.Object
   org.apache.log4j.Category

Direct Known Subclasses:
    Logger, RootLogger, NOPLogger, RootCategory

This class is a minimal implementation of the original org.apache.log4j.Category class (as found in log4j 1.2) by delegation of all calls to a org.slf4j.Logger.Logger instance.

Log4j's trace, debug(), info(), warn(), error() printing methods are directly mapped to their SLF4J equivalents. Log4j's fatal() printing method is mapped to SLF4J's error() method with a FATAL marker.

Field Summary
protected  Logger slf4jLogger     
Constructor:
 Category(String name) 
Method from org.apache.log4j.Category Summary:
convertToString,   debug,   debug,   differentiatedLog,   error,   error,   fatal,   fatal,   getEffectiveLevel,   getInstance,   getInstance,   getLevel,   getName,   getPriority,   info,   info,   isDebugEnabled,   isEnabledFor,   isErrorEnabled,   isInfoEnabled,   isWarnEnabled,   log,   warn,   warn
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.Category Detail:
 protected final String convertToString(Object message) 
 public  void debug(Object message) 
 public  void debug(Object message,
    Throwable t) 
  void differentiatedLog(Marker marker,
    String fqcn,
    int level,
    Object message,
    Throwable t) 
 public  void error(Object message) 
 public  void error(Object message,
    Throwable t) 
 public  void fatal(Object message) 
 public  void fatal(Object message,
    Throwable t) 
 public Level getEffectiveLevel() 
    Return the level in effect for this category/logger.

    The result is computed by simulation.

 public static Category getInstance(Class clazz) 
 public static Category getInstance(String name) 
 public final Level getLevel() 
    Returns the assigned Level , if any, for this Category. This implementation always returns null.
 public String getName() 
    Returns the obvious.
 public final Level getPriority() 
Deprecated! Please - use #getLevel instead.

 public  void info(Object message) 
 public  void info(Object message,
    Throwable t) 
 public boolean isDebugEnabled() 
 public boolean isEnabledFor(Priority p) 
    Determines whether the priority passed as parameter is enabled in the underlying SLF4J logger. Each log4j priority is mapped directly to its SLF4J equivalent, except for FATAL which is mapped as ERROR.
 public boolean isErrorEnabled() 
 public boolean isInfoEnabled() 
 public boolean isWarnEnabled() 
 public  void log(String FQCN,
    Priority p,
    Object msg,
    Throwable t) 
 public  void warn(Object message) 
 public  void warn(Object message,
    Throwable t)