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