类 LoggersEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<Map<String,Object>>
- org.springframework.boot.actuate.endpoint.LoggersEndpoint
- 所有已实现的接口:
org.springframework.beans.factory.Aware,Endpoint<Map<String,Object>>,org.springframework.context.EnvironmentAware
@ConfigurationProperties(prefix="endpoints.loggers") public class LoggersEndpoint extends AbstractEndpoint<Map<String,Object>>
Endpointto expose a collection ofLoggerConfigurations.- 从以下版本开始:
- 1.5.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classLoggersEndpoint.LoggerLevelsLevels configured for a given logger exposed in a JSON friendly way.
构造器概要
构造器 构造器 说明 LoggersEndpoint(org.springframework.boot.logging.LoggingSystem loggingSystem)Create a newLoggersEndpointinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Map<String,Object>invoke()Called to invoke the endpoint.LoggersEndpoint.LoggerLevelsinvoke(String name)voidsetLogLevel(String name, org.springframework.boot.logging.LogLevel level)从类继承的方法 org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
构造器详细资料
LoggersEndpoint
public LoggersEndpoint(org.springframework.boot.logging.LoggingSystem loggingSystem)
Create a newLoggersEndpointinstance.- 参数:
loggingSystem- the logging system to expose
方法详细资料
invoke
public Map<String,Object> invoke()
从接口复制的说明:EndpointCalled to invoke the endpoint.- 返回:
- the results of the invocation
invoke
public LoggersEndpoint.LoggerLevels invoke(String name)
setLogLevel
public void setLogLevel(String name, org.springframework.boot.logging.LogLevel level)