Interface LoggersManager<T>
-
- Type Parameters:
T- The type
- All Known Implementing Classes:
DefaultLoggersManager
public interface LoggersManager<T>Used to retrieve and update logger information for theLoggersEndpoint.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<T>getLogger(ManagedLoggingSystem loggingSystem, @NotBlank java.lang.String name)Find (or create if not found) the named logger in the system.org.reactivestreams.Publisher<T>getLoggers(ManagedLoggingSystem loggingSystem)Collect all existing loggers in the system.voidsetLogLevel(ManagedLoggingSystem loggingSystem, @NotBlank java.lang.String name, io.micronaut.logging.LogLevel level)Set the log level for the named logger in the system.
-
-
-
Method Detail
-
getLoggers
org.reactivestreams.Publisher<T> getLoggers(ManagedLoggingSystem loggingSystem)
Collect all existing loggers in the system.- Parameters:
loggingSystem- TheManagedLoggingSystemin use- Returns:
- A
PublisherofT
-
getLogger
org.reactivestreams.Publisher<T> getLogger(ManagedLoggingSystem loggingSystem, @NotBlank @NotBlank java.lang.String name)
Find (or create if not found) the named logger in the system.- Parameters:
loggingSystem- TheManagedLoggingSystemin usename- The name of the logger to find or create- Returns:
- A
PublisherofT
-
setLogLevel
void setLogLevel(ManagedLoggingSystem loggingSystem, @NotBlank @NotBlank java.lang.String name, @NotNull io.micronaut.logging.LogLevel level)
Set the log level for the named logger in the system.- Parameters:
loggingSystem- TheManagedLoggingSystemin usename- The name of the logger to find or createlevel- The log level to configure
-
-