|
Log4j 1.2.8 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.Category
org.apache.log4j.Logger
This is the central class in the log4j package. Most logging operations, except configuration, are done through this class.
Field Summary |
---|
Fields inherited from class org.apache.log4j.Category |
---|
additive, level, name, parent, repository, resourceBundle |
Constructor Summary | |
---|---|
protected |
Logger(java.lang.String name)
|
Method Summary | |
---|---|
static Logger |
getLogger(java.lang.Class clazz)
Same as calling getLogger(clazz.getName()) . |
static Logger |
getLogger(java.lang.String name)
Retrieve a logger by name. |
static Logger |
getLogger(java.lang.String name,
LoggerFactory factory)
Like getLogger(String) except that the type of logger
instantiated depends on the type returned by the LoggerFactory.makeNewLoggerInstance(java.lang.String) method of the
factory parameter. |
static Logger |
getRootLogger()
Retrieve the root logger. |
Methods inherited from class org.apache.log4j.Category |
---|
addAppender, assertLog, callAppenders, debug, debug, error, error, exists, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setLevel, setPriority, setResourceBundle, shutdown, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Logger(java.lang.String name)
Method Detail |
public static Logger getLogger(java.lang.String name)
public static Logger getLogger(java.lang.Class clazz)
getLogger(clazz.getName())
.
public static Logger getRootLogger()
public static Logger getLogger(java.lang.String name, LoggerFactory factory)
getLogger(String)
except that the type of logger
instantiated depends on the type returned by the LoggerFactory.makeNewLoggerInstance(java.lang.String)
method of the
factory
parameter.
This method is intended to be used by sub-classes.
name
- The name of the logger to retrieve.factory
- A LoggerFactory
implementation that will
actually create a new Instance.
|
Log4j 1.2.8 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |