| java.lang.Object org.apache.log4j.Category
All known Subclasses: org.apache.log4j.Logger,
Category | public class Category (Code) | |
This class is a minimal implementation of the original
org.apache.log4j.Logger class 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.
author: Sébastien Pennec author: Ceki Gülcü |
getRootLogger | public static Logger getRootLogger()(Code) | | Does the obvious.
|
isEnabledFor | public boolean isEnabledFor(Priority p)(Code) | | Delegates to
Category.isEnabledFor(Level) .
Parameters: p - the priority to check against true if this logger is enabled for the given priority, false otehrwise. |
isEnabledFor | public boolean isEnabledFor(Level l)(Code) | | Determines whether the level passes as parameter is enabled in
the underlying SLF4J logger. Each log4j level is mapped directly to
its SLF4J equivalent, except for FATAL which is mapped as ERROR.
Parameters: l - the level to check against true if this logger is enabled for the given level, false otehrwise. |
|
|