Class LoggersEndpoint
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractEndpoint<Map<String,Object>>
- org.springframework.boot.actuate.endpoint.LoggersEndpoint
- All Implemented Interfaces:
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.- Since:
- 1.5.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 Map<String,Object>invoke()Called to invoke the endpoint.LoggersEndpoint.LoggerLevelsinvoke(String name)voidsetLogLevel(String name, org.springframework.boot.logging.LogLevel level)Methods inherited from class org.springframework.boot.actuate.endpoint.AbstractEndpoint
getEnvironment, getId, isEnabled, isSensitive, setEnabled, setEnvironment, setId, setSensitive
Constructor Detail
LoggersEndpoint
public LoggersEndpoint(org.springframework.boot.logging.LoggingSystem loggingSystem)
Create a newLoggersEndpointinstance.- Parameters:
loggingSystem- the logging system to expose
Method Detail
invoke
public Map<String,Object> invoke()
Description copied from interface:EndpointCalled to invoke the endpoint.- Returns:
- the results of the invocation
invoke
public LoggersEndpoint.LoggerLevels invoke(String name)
setLogLevel
public void setLogLevel(String name, org.springframework.boot.logging.LogLevel level)