SLF4J 1.0

org.slf4j
Interface ILoggerFactory

All Known Implementing Classes:
JCLLoggerFactory, JDK14LoggerFactory, Log4jLoggerFactory, NOPLoggerFactory, SimpleLoggerFactory

public interface ILoggerFactory

ILoggerFactory instances manufacture Logger instances by name.

Most users retrieve Logger instances through the static LoggerFactory.getLogger(String) method. An instance of of this interface is bound internally with LoggerFactory class at compile time. Only developers of SLF4J conforming logging systems need to worry about this interface.

See the section Implementing the SLF4J API in the FAQ for details on how to make your logging system conform to SLF4J.

Author:
Ceki Gülcü

Method Summary
 Logger getLogger(java.lang.String name)
          Return an appropriate Logger instance as specified by the name parameter.
 

Method Detail

getLogger

public Logger getLogger(java.lang.String name)
Return an appropriate Logger instance as specified by the name parameter.

Null-valued name arguments are considered invalid.

Certain extremely simple logging systems, e.g. NOP, may always return the same logger instance regardless of the requested name.

Parameters:
name - the name of the Logger to return

Copyright 2004-2006 SLF4J.ORG, QOS.ch