Uses of Class
org.apache.log4j.Logger

Uses of Logger in org.apache.log4j
 

Methods in org.apache.log4j that return Logger
static Logger LogManager.exists(java.lang.String name)
           
 Logger Hierarchy.exists(java.lang.String name)
          Check if the named logger exists in the hierarchy.
static Logger Category.exists(java.lang.String name)
          Deprecated. Please use LogManager.exists(java.lang.String) instead.
static Logger LogManager.getLogger(java.lang.Class clazz)
          Retrieve the appropriate Logger instance.
static Logger Logger.getLogger(java.lang.Class clazz)
          Shorthand for getLogger(clazz.getName()).
static Logger LogManager.getLogger(java.lang.String name)
          Retrieve the appropriate Logger instance.
static Logger Logger.getLogger(java.lang.String name)
          Retrieve a logger named according to the value of the name parameter.
 Logger Hierarchy.getLogger(java.lang.String name)
          Return a new logger instance named as the first parameter using the default factory.
static Logger LogManager.getLogger(java.lang.String name, org.apache.log4j.spi.LoggerFactory factory)
          Retrieve the appropriate Logger instance.
static Logger Logger.getLogger(java.lang.String name, org.apache.log4j.spi.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.
 Logger Hierarchy.getLogger(java.lang.String name, org.apache.log4j.spi.LoggerFactory factory)
          Return a new logger instance named as the first parameter using factory.
static Logger LogManager.getRootLogger()
          Retrieve the appropriate root logger.
static Logger Logger.getRootLogger()
          Return the root logger for the current logger repository.
 Logger Hierarchy.getRootLogger()
          Get the root of this hierarchy.
 

Constructors in org.apache.log4j with parameters of type Logger
Hierarchy(Logger root)
          Create a new logger hierarchy.
 



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.