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>>
Endpoint
to expose a collection ofLoggerConfiguration
s.- Since:
- 1.5.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LoggersEndpoint.LoggerLevels
Levels 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 newLoggersEndpoint
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
invoke()
Called to invoke the endpoint.LoggersEndpoint.LoggerLevels
invoke(String name)
void
setLogLevel(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 newLoggersEndpoint
instance.- Parameters:
loggingSystem
- the logging system to expose
Method Detail
invoke
public Map<String,Object> invoke()
Description copied from interface:Endpoint
Called 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)