Top Description Constructors Methods
org.slf4j.helpers

public Class NOPLoggerFactory

extends Object
implements ILoggerFactory
Class Inheritance
All Implemented Interfaces
org.slf4j.ILoggerFactory
Imports
org.slf4j.ILoggerFactory, .Logger

NOPLoggerFactory is a trivial implementation of ILoggerFactory which always returns the unique instance of NOPLogger.
Author
Ceki Gülcü

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Logger
getLogger(String name)

Implements org.slf4j.ILoggerFactory.getLogger.

Return an appropriate Logger instance as specified by the name parameter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NOPLoggerFactoryback to summary
public NOPLoggerFactory()

Method Detail

getLoggerback to summary
public Logger getLogger(String name)

Implements org.slf4j.ILoggerFactory.getLogger.

Doc from org.slf4j.ILoggerFactory.getLogger.

Return an appropriate Logger instance as specified by the name parameter.

If the name parameter is equal to Logger#ROOT_LOGGER_NAME, that is the string value "ROOT" (case insensitive), then the root logger of the underlying logging system is returned.

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.