@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.LoggerLevels
Levels configured for a given logger exposed in a JSON friendly way.
|
Constructor and Description |
---|
LoggersEndpoint(LoggingSystem loggingSystem)
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)
LoggersEndpoint
instance.loggingSystem
- the logging system 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)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.