public class LogMessageOutputTargetRegistry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LogMessageOutputTarget |
DEFAULT_OUTPUT_TARGET
The default out put target that will be used whenever no specific output target is registered for a given logger name.
|
static java.lang.String |
ROOT_LOGGER_NAME
The name of the root logger (parent of all loggers).
|
Constructor and Description |
---|
LogMessageOutputTargetRegistry() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Removes all registered output targets.
|
static LogMessageOutputTarget |
getOutputTarget(java.lang.String loggerName)
Returns the output target registered for the given logger name or its parent logger name.
|
static void |
registerOutputTarget(java.lang.String loggerName,
LogMessageOutputTarget outputTarget)
Register a specific output target fore the given logger name.
|
public static LogMessageOutputTarget DEFAULT_OUTPUT_TARGET
public static final java.lang.String ROOT_LOGGER_NAME
public static void clear()
public static void registerOutputTarget(java.lang.String loggerName, LogMessageOutputTarget outputTarget)
public static LogMessageOutputTarget getOutputTarget(java.lang.String loggerName)