@Endpoint(id="loggers") public class LoggersEndpoint extends Object
@Endpoint
to expose a collection of LoggerConfiguration
s.Modifier and Type | Class and Description |
---|---|
static class |
LoggersEndpoint.GroupLoggerLevels
Levels configured for given logger group exposed in a JSON friendly way.
|
static class |
LoggersEndpoint.LoggerLevels
Levels configured for a given logger exposed in a JSON friendly way.
|
static class |
LoggersEndpoint.SingleLoggerLevels
Levels configured for single logger exposed in a JSON friendly way.
|
Constructor and Description |
---|
LoggersEndpoint(LoggingSystem loggingSystem,
LoggerGroups loggerGroups)
Create a new
LoggersEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
void |
configureLogLevel(String name,
LogLevel configuredLevel) |
LoggersEndpoint.LoggerLevels |
loggerLevels(String name) |
Map<String,Object> |
loggers() |
public LoggersEndpoint(LoggingSystem loggingSystem, LoggerGroups loggerGroups)
LoggersEndpoint
instance.loggingSystem
- the logging system to exposeloggerGroups
- the logger group to expose@ReadOperation public Map<String,Object> loggers()
@ReadOperation public LoggersEndpoint.LoggerLevels loggerLevels(@Selector String name)
@WriteOperation public void configureLogLevel(@Selector String name, @Nullable LogLevel configuredLevel)