public interface LoggerContext
| Modifier and Type | Method and Description |
|---|---|
Object |
getExternalContext()
An anchor for some other context, such as a ClassLoader or ServletContext.
|
ExtendedLogger |
getLogger(String
Returns an ExtendedLogger.
|
ExtendedLogger |
getLogger(String
Returns an ExtendedLogger.
|
boolean |
hasLogger(String
Detects if a Logger with the specified name exists.
|
boolean |
hasLogger(String
Detects if a Logger with the specified name and MessageFactory type exists.
|
boolean |
hasLogger(String
Detects if a Logger with the specified name and MessageFactory exists.
|
ObjectgetExternalContext()
ExtendedLoggergetLogger(String name)
name - The name of the Logger to return.
ExtendedLoggergetLogger(String name, MessageFactory messageFactory)
name - The name of the Logger to return.
messageFactory - The message factory is used only when creating a logger, subsequent use does not change the logger but will log a warning if mismatched.
boolean hasLogger(Stringname)
name - The Logger name to search for.
boolean hasLogger(Stringname, MessageFactory messageFactory)
name - The Logger name to search for.
boolean hasLogger(Stringname, Class <? extends MessageFactory > messageFactoryClass)
name - The Logger name to search for.