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 LoggerConfigurations.- Since:
- 2.0.0
- Author:
- Ben Hale, Phillip Webb, HaiTao Zhang
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescription of levels configured for a given group logger.static classDescription of levels configured for a given logger.static classDescription of loggers.static classDescription of levels configured for a given single logger. -
Constructor Summary
ConstructorsConstructorDescriptionLoggersEndpoint(LoggingSystem loggingSystem, LoggerGroups loggerGroups) Create a newLoggersEndpointinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureLogLevel(String name, LogLevel configuredLevel) loggerLevels(String name) loggers()
-
Constructor Details
-
LoggersEndpoint
Create a newLoggersEndpointinstance.- 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)
-