类 LoggersEndpoint
- java.lang.Object
- org.springframework.boot.actuate.logging.LoggersEndpoint
@Endpoint(id="loggers") public class LoggersEndpoint extends Object
Endpoint
to expose a collection ofLoggerConfiguration
s.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
LoggersEndpoint.LoggerLevels
Levels configured for a given logger exposed in a JSON friendly way.
构造器概要
构造器 构造器 说明 LoggersEndpoint(org.springframework.boot.logging.LoggingSystem loggingSystem)
Create a newLoggersEndpoint
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
configureLogLevel(String name, org.springframework.boot.logging.LogLevel configuredLevel)
LoggersEndpoint.LoggerLevels
loggerLevels(String name)
Map<String,Object>
loggers()
构造器详细资料
LoggersEndpoint
public LoggersEndpoint(org.springframework.boot.logging.LoggingSystem loggingSystem)
Create a newLoggersEndpoint
instance.- 参数:
loggingSystem
- the logging system to expose
方法详细资料
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)