org.apache.logging.log4j.spi
Interface LoggerContext

All Known Implementing Classes:
SimpleLoggerContext

public interface LoggerContext

Anchor point for logging implementations.


Method Summary
 Object getExternalContext()
          An anchor for some other context, such as a ServletContext.
 Logger getLogger(String name)
          Returns a Logger.
 boolean hasLogger(String name)
          Detects if a Logger with the specified name exists.
 

Method Detail

getLogger

Logger getLogger(String name)
Returns a Logger.

Parameters:
name - The name of the Logger to return.
Returns:
The logger with the specified name.

hasLogger

boolean hasLogger(String name)
Detects if a Logger with the specified name exists.

Parameters:
name - The Logger name to search for.
Returns:
true if the Logger exists, false otherwise.

getExternalContext

Object getExternalContext()
An anchor for some other context, such as a ServletContext.

Returns:
The external context.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.