Class LoggersEndpoint
- java.lang.Object
- org.springframework.boot.actuate.logging.LoggersEndpoint
@Endpoint(id="loggers") public class LoggersEndpoint extends Object
Endpointto expose a collection ofLoggerConfigurations.- Since:
- 2.0.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoggersEndpoint.LoggerLevelsLevels configured for a given logger exposed in a JSON friendly way.
Constructor Summary
Constructors Constructor Description LoggersEndpoint(org.springframework.boot.logging.LoggingSystem loggingSystem)Create a newLoggersEndpointinstance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureLogLevel(String name, org.springframework.boot.logging.LogLevel configuredLevel)LoggersEndpoint.LoggerLevelsloggerLevels(String name)Map<String,Object>loggers()
Constructor Detail
LoggersEndpoint
public LoggersEndpoint(org.springframework.boot.logging.LoggingSystem loggingSystem)
Create a newLoggersEndpointinstance.- Parameters:
loggingSystem- the logging system to expose
Method Detail
loggers
@ReadOperation public Map<String,Object> loggers()
loggerLevels
@ReadOperation public LoggersEndpoint.LoggerLevels loggerLevels(@Selector String name)
configureLogLevel
@WriteOperation public void configureLogLevel(@Selector String name, @Nullable org.springframework.boot.logging.LogLevel configuredLevel)