public class LoggersEndpointMBean extends EndpointMBean
LoggersEndpoint
as an MvcEndpoint
.Constructor and Description |
---|
LoggersEndpointMBean(String beanName,
Endpoint<?> endpoint,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
LoggersEndpoint |
getEndpoint() |
Object |
getLogger(String loggerName) |
Object |
getLoggers() |
void |
setLogLevel(String loggerName,
String logLevel) |
convert, getEndpointClass, getEndpointType, getIdentity, isEnabled, isSensitive
@ManagedAttribute(description="Get log levels for all known loggers") public Object getLoggers()
@ManagedOperation(description="Get log level for a given logger") @ManagedOperationParameters(value=@ManagedOperationParameter(name="loggerName",description="Name of the logger")) public Object getLogger(String loggerName)
@ManagedOperation(description="Set log level for a given logger") @ManagedOperationParameter(name="loggerName",description="Name of the logger") @ManagedOperationParameter(name="logLevel",description="New log level (can be null or empty String to remove the custom level)") public void setLogLevel(String loggerName, String logLevel)
public LoggersEndpoint getEndpoint()
getEndpoint
in class EndpointMBean
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.