org.apache.log4j
Class Logger
- AppenderAttachable
This is the central class in the log4j package. Most logging
operations, except configuration, are done through this class.
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 |
Logger
protected Logger(String name)
getLogger
public static Logger getLogger(Class clazz)
Same as calling getLogger(clazz.getName())
.
getLogger
public static Logger getLogger(String name)
Retrieve a logger by name.
getLogger
public static Logger getLogger(String name,
LoggerFactory factory)
name
- The name of the logger to retrieve.factory
- A LoggerFactory
implementation that will
actually create a new Instance.
getRootLogger
public static Logger getRootLogger()
Retrieve the root logger.
Copyright 2000-2002 Apache Software Foundation.