Package org.wso2.carbon.logging.service
Class LoggingAdmin
java.lang.Object
org.wso2.carbon.logging.service.LoggingAdmin
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAllLoggerData(boolean beginsWith, String logNameFilter) getLoggerData(String loggerName) booleanisLoggerExist(String loggerName) voidupdateLoggerData(String loggerName, String logLevel)
-
Constructor Details
-
LoggingAdmin
public LoggingAdmin()
-
-
Method Details
-
getLoggers
- Throws:
IOException
-
getLoggerData
- Throws:
IOException
-
getAllLoggerData
- 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
- Throws:
IOException
-