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") public Object getLogger(String loggerName)
@ManagedOperation(description="Set log level for a given logger") public void setLogLevel(String loggerName, String logLevel)
public LoggersEndpoint getEndpoint()
getEndpoint
in class EndpointMBean
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.