@Component @ManagedResource(objectName="ch.qos.logback.classic:Name=default,Type=ch.qos.logback.classic.jmx.JMXConfigurator", description="oss log4j extend Bean") public class Log4j2Manager extends Object implements Log4j2ManagerMBean
Modifier and Type | Class and Description |
---|---|
static class |
Log4j2Manager.LoggerComparator |
Constructor and Description |
---|
Log4j2Manager() |
Modifier and Type | Method and Description |
---|---|
String |
getLoggerEffectiveLevel(String loggerName) |
String |
getLoggerLevel(String loggerName) |
List<String> |
getLoggerList() |
String |
getRootLoggerLevel() |
void |
setLoggerLevel(String loggerName,
String level) |
void |
setRootLoggerLevel(String levelStr) |
public void setLoggerLevel(String loggerName, String level)
setLoggerLevel
in interface Log4j2ManagerMBean
public String getLoggerLevel(String loggerName)
getLoggerLevel
in interface Log4j2ManagerMBean
public List<String> getLoggerList()
getLoggerList
in interface Log4j2ManagerMBean
public String getLoggerEffectiveLevel(String loggerName)
getLoggerEffectiveLevel
in interface Log4j2ManagerMBean
public void setRootLoggerLevel(String levelStr)
setRootLoggerLevel
in interface Log4j2ManagerMBean
public String getRootLoggerLevel()
getRootLoggerLevel
in interface Log4j2ManagerMBean
Copyright © 2017. All rights reserved.