@Singleton @Requires(beans=LoggersEndpoint.class) public class DefaultLoggersManager extends Object implements LoggersManager<Map<String,Object>>
LoggersManager
.Constructor and Description |
---|
DefaultLoggersManager() |
Modifier and Type | Method and Description |
---|---|
Publisher<Map<String,Object>> |
getLogger(LoggingSystem loggingSystem,
String name)
Find (or create if not found) the named logger in the system.
|
Publisher<Map<String,Object>> |
getLoggers(LoggingSystem loggingSystem)
Collect all existing loggers in the system.
|
void |
setLogLevel(LoggingSystem loggingSystem,
String name,
LogLevel level)
Set the log level for the named logger in the system.
|
public Publisher<Map<String,Object>> getLoggers(LoggingSystem loggingSystem)
LoggersManager
getLoggers
in interface LoggersManager<Map<String,Object>>
loggingSystem
- The LoggingSystem
in usePublisher
of T
public Publisher<Map<String,Object>> getLogger(LoggingSystem loggingSystem, String name)
LoggersManager
getLogger
in interface LoggersManager<Map<String,Object>>
loggingSystem
- The LoggingSystem
in usename
- The name of the logger to find or createPublisher
of T
public void setLogLevel(LoggingSystem loggingSystem, String name, LogLevel level)
LoggersManager
setLogLevel
in interface LoggersManager<Map<String,Object>>
loggingSystem
- The LoggingSystem
in usename
- The name of the logger to find or createlevel
- The log level to configure