public class Slf4jMonologFactory extends Object implements LoggingFactory
Modifier and Type | Field and Description |
---|---|
private static Slf4jLoggerLevelSetter |
runtimeReconfiguration |
Constructor and Description |
---|
Slf4jMonologFactory() |
Modifier and Type | Method and Description |
---|---|
Level |
getDebugLevel()
Returns the Level object for DEBUG level.
|
Level |
getErrorLevel()
Returns the Level object for ERROR level.
|
Level |
getFatalLevel()
Returns the Level object for FATAL level.
|
Level |
getInfoLevel()
Returns the Level object for INFO level.
|
Logger |
getLogger(String topic)
Find or create a logger for a named subsystem.
|
Level |
getWarnLevel()
Returns the Level object for WARN level.
|
void |
initialize(String debugDir,
String debugFileName)
Initializes the logging subsystem.
|
Level |
parse(String name)
Returns the Level object corresponding to specified name.
|
static void |
setRuntimeReconfiguration(Slf4jLoggerLevelSetter runtimeReconfiguration) |
private static Slf4jLoggerLevelSetter runtimeReconfiguration
public void initialize(String debugDir, String debugFileName)
LoggingFactory
initialize
in interface LoggingFactory
public Logger getLogger(String topic)
LoggingFactory
getLogger
in interface LoggingFactory
topic
- A name for the logger. This should be a dot-separated name and
should normally be based on the package name or class name of the subsystem.public Level getFatalLevel()
LoggingFactory
getFatalLevel
in interface LoggingFactory
public Level getErrorLevel()
LoggingFactory
getErrorLevel
in interface LoggingFactory
public Level getWarnLevel()
LoggingFactory
getWarnLevel
in interface LoggingFactory
public Level getInfoLevel()
LoggingFactory
getInfoLevel
in interface LoggingFactory
public Level getDebugLevel()
LoggingFactory
getDebugLevel
in interface LoggingFactory
public Level parse(String name)
LoggingFactory
parse
in interface LoggingFactory
name
- The level name, for example DEBUG or FATAL.public static void setRuntimeReconfiguration(Slf4jLoggerLevelSetter runtimeReconfiguration)
Copyright © 2023 ScalAgent D.T.. All rights reserved.