Package org.wso2.carbon.logging.service
Class LoggingAdmin
- java.lang.Object
-
- org.wso2.carbon.logging.service.LoggingAdmin
-
public class LoggingAdmin extends Object
This is the Admin service used for obtaining Log4J2 information about the system and also used for managing the system Log4J2 configuration.
-
-
Constructor Summary
Constructors Constructor Description LoggingAdmin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogger(String loggerName, String loggerClass, String logLevel)LoggerData[]getAllLoggerData(boolean beginsWith, String logNameFilter)LoggerDatagetLoggerData(String loggerName)StringgetLoggers()booleanisLoggerExist(String loggerName)voidupdateLoggerData(String loggerName, String logLevel)
-
-
-
Method Detail
-
getLoggers
public String getLoggers() throws IOException
- Throws:
IOException
-
getLoggerData
public LoggerData getLoggerData(String loggerName) throws IOException
- Throws:
IOException
-
getAllLoggerData
public LoggerData[] getAllLoggerData(boolean beginsWith, String logNameFilter) throws IOException
- Throws:
IOException
-
updateLoggerData
public void updateLoggerData(String loggerName, String logLevel) throws IOException, org.apache.commons.configuration2.ex.ConfigurationException
- Throws:
IOExceptionorg.apache.commons.configuration2.ex.ConfigurationException
-
addLogger
public void addLogger(String loggerName, String loggerClass, String logLevel) throws IOException, org.apache.commons.configuration2.ex.ConfigurationException
- Throws:
IOExceptionorg.apache.commons.configuration2.ex.ConfigurationException
-
isLoggerExist
public boolean isLoggerExist(String loggerName) throws IOException
- Throws:
IOException
-
-