Log4j Version 1.2.7: Uses of Class org.apache.log4j.Logger

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Log4j 1.2.7
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.apache.log4j.Logger

Packages that use Logger
org.apache.log4j | The main log4j package.
org.apache.log4j.helpers | This package is used internally.
org.apache.log4j.jmx | This package lets you manage log4j settings using JMX.
org.apache.log4j.spi | Contains part of the System Programming Interface (SPI) needed to extend log4j.
org.apache.log4j.varia | Contains various appenders, filters and other odds and ends.
org.apache.log4j.xml | XML based components.

Uses of Logger in org.apache.log4j

Methods in org.apache.log4j that return Logger
`static Logger` | `Category.exists(String name)` Deprecated. Please use `LogManager.exists(java.lang.String)` instead.
`static Logger` | `LogManager.getRootLogger()` Retrieve the appropriate root logger.
`static Logger` | `LogManager.getLogger(String name)` Retrieve the appropriate `Logger` instance.
`static Logger` | `LogManager.getLogger(Class clazz)` Retrieve the appropriate `Logger` instance.
`static Logger` | `LogManager.getLogger(String name, LoggerFactory factory)` Retrieve the appropriate `Logger` instance.
`static Logger` | `LogManager.exists(String name)`
`static Logger` | `Logger.getLogger(String name)` Retrieve a logger by name.
`static Logger` | `Logger.getLogger(Class clazz)` Same as calling `getLogger(clazz.getName())`.
`static Logger` | `Logger.getRootLogger()` Retrieve the root logger.
`static Logger` | `Logger.getLogger(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.
`Logger` | `Hierarchy.exists(String name)` Check if the named logger exists in the hierarchy.
`Logger` | `Hierarchy.getLogger(String name)` Return a new logger instance named as the first parameter using the default factory.
`Logger` | `Hierarchy.getLogger(String name, LoggerFactory factory)` Return a new logger instance named as the first parameter using `factory`.
`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.

Uses of Logger in org.apache.log4j.helpers

Methods in org.apache.log4j.helpers with parameters of type Logger
`void` | `OnlyOnceErrorHandler.setLogger(Logger logger)` Does not do anything.

Uses of Logger in org.apache.log4j.jmx

Methods in org.apache.log4j.jmx that return Logger
`protected abstract Logger` | `AbstractDynamicMBean.getLogger()`
`protected Logger` | `LoggerDynamicMBean.getLogger()`
`protected Logger` | `LayoutDynamicMBean.getLogger()`
`protected Logger` | `AppenderDynamicMBean.getLogger()`
`protected Logger` | `HierarchyDynamicMBean.getLogger()`

Constructors in org.apache.log4j.jmx with parameters of type Logger
`LoggerDynamicMBean(Logger logger)`

Uses of Logger in org.apache.log4j.spi

Subclasses of Logger in org.apache.log4j.spi
`class` | `RootCategory` RootCategory sits at the top of the category hierachy.

Methods in org.apache.log4j.spi that return Logger
`Logger` | `LoggerFactory.makeNewLoggerInstance(String name)`
`Logger` | `LoggerRepository.getLogger(String name)`
`Logger` | `LoggerRepository.getLogger(String name, LoggerFactory factory)`
`Logger` | `LoggerRepository.getRootLogger()`
`Logger` | `LoggerRepository.exists(String name)`

Methods in org.apache.log4j.spi with parameters of type Logger
`void` | `ErrorHandler.setLogger(Logger logger)` Add a reference to a logger to which the failing appender might be attached to.

Uses of Logger in org.apache.log4j.varia

Methods in org.apache.log4j.varia with parameters of type Logger
`void` | `FallbackErrorHandler.setLogger(Logger logger)` Adds the logger passed as parameter to the list of loggers that we need to search for in case of appender failure.

Uses of Logger in org.apache.log4j.xml

Methods in org.apache.log4j.xml with parameters of type Logger
`protected void` | `DOMConfigurator.parseChildrenOfLoggerElement(Element catElement, Logger cat, boolean isRoot)` Used internally to parse the children of a category element.
`protected void` | `DOMConfigurator.parseLevel(Element element, Logger logger, boolean isRoot)` Used internally to parse a level element.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Log4j 1.2.7
PREV NEXT | FRAMES NO FRAMES

Copyright 2000-2002 Apache Software Foundation.