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 the
LoggersEndpoint
.- Since:
- 1.0
- Author:
- Matthew Moss
-
Method Summary
Modifier and TypeMethodDescriptiongetLogger
(ManagedLoggingSystem loggingSystem, @NotBlank String name) Find (or create if not found) the named logger in the system.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.
-
Method Details
-
getLoggers
Collect all existing loggers in the system.- Parameters:
loggingSystem
- TheManagedLoggingSystem
in use- Returns:
- A
Publisher
ofT
-
getLogger
Find (or create if not found) the named logger in the system.- Parameters:
loggingSystem
- TheManagedLoggingSystem
in usename
- The name of the logger to find or create- Returns:
- A
Publisher
ofT
-
setLogLevel
void setLogLevel(ManagedLoggingSystem loggingSystem, @NotBlank @NotBlank String name, @NotNull LogLevel level) Set the log level for the named logger in the system.- Parameters:
loggingSystem
- TheManagedLoggingSystem
in usename
- The name of the logger to find or createlevel
- The log level to configure
-