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.voidsetLogLevel(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- TheManagedLoggingSystemin use- Returns:
- A
PublisherofT
-
getLogger
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 String name, @NotNull 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
-