@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(ManagedLoggingSystem loggingSystem,
String name)
Find (or create if not found) the named logger in the system.
|
Publisher<Map<String,Object>> |
getLoggers(ManagedLoggingSystem loggingSystem)
Collect all existing loggers in the system.
|
void |
setLogLevel(ManagedLoggingSystem loggingSystem,
@NotBlank String name,
LogLevel level)
Set the log level for the named logger in the system.
|
public Publisher<Map<String,Object>> getLoggers(ManagedLoggingSystem loggingSystem)
LoggersManager
getLoggers
in interface LoggersManager<Map<String,Object>>
loggingSystem
- The ManagedLoggingSystem
in usePublisher
of T
public Publisher<Map<String,Object>> getLogger(ManagedLoggingSystem loggingSystem, String name)
LoggersManager
getLogger
in interface LoggersManager<Map<String,Object>>
loggingSystem
- The ManagedLoggingSystem
in usename
- The name of the logger to find or createPublisher
of T
public void setLogLevel(ManagedLoggingSystem loggingSystem, @NotBlank @NotBlank String name, @NotNull LogLevel level)
LoggersManager
setLogLevel
in interface LoggersManager<Map<String,Object>>
loggingSystem
- The ManagedLoggingSystem
in usename
- The name of the logger to find or createlevel
- The log level to configure