Class LoggersEndpoint
java.lang.Object
org.springframework.boot.actuate.logging.LoggersEndpoint
@Endpoint(id="loggers")
@RegisterReflectionForBinding({GroupLoggerLevelsDescriptor.class,SingleLoggerLevelsDescriptor.class})
public class LoggersEndpoint
extends Object
@Endpoint
to expose a collection of LoggerConfiguration
s.- Since:
- 2.0.0
- Author:
- Ben Hale, Phillip Webb, HaiTao Zhang
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Description of levels configured for a given group logger.static class
Description of levels configured for a given logger.static class
Description of loggers.static class
Description of levels configured for a given single logger. -
Constructor Summary
ConstructorDescriptionLoggersEndpoint
(LoggingSystem loggingSystem, LoggerGroups loggerGroups) Create a newLoggersEndpoint
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureLogLevel
(String name, LogLevel configuredLevel) loggerLevels
(String name) loggers()
-
Constructor Details
-
LoggersEndpoint
Create a newLoggersEndpoint
instance.- Parameters:
loggingSystem
- the logging system to exposeloggerGroups
- the logger group to expose
-
-
Method Details
-
loggers
-
loggerLevels
-
configureLogLevel
@WriteOperation public void configureLogLevel(@Selector String name, @Nullable LogLevel configuredLevel)
-