public class LoggingAdminClient extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LoggingAdminClient.LogLevel |
| Constructor and Description |
|---|
LoggingAdminClient(String backEndUrl,
String sessionCookie) |
LoggingAdminClient(String backEndURL,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.logging.admin.stub.types.carbon.AppenderData |
getAppenderData(String appenderName)
Returns the AppenderData for the given appenderName.
|
org.wso2.carbon.logging.admin.stub.types.carbon.LogData |
getSysLog()
Returns the system log data.
|
void |
restoreToDefaults()
Restores to the default log.
|
boolean |
updateLoggerData(String loggerName,
String logLevel,
boolean additivity,
boolean persist)
Updates the loggerdata in the
LoggingAdminStub. |
void |
updateSystemLog(String logLevel,
String logPattern,
boolean persist)
Updates the system log.
|
public LoggingAdminClient(String backEndUrl, String sessionCookie) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic boolean updateLoggerData(String loggerName, String logLevel, boolean additivity, boolean persist) throws Exception
LoggingAdminStub.loggerName - the logger namelogLevel - the log leveladditivity - whether additivity is true or falsepersist - whether to persist or notException - exception from the LoggingAdminStubpublic void updateSystemLog(String logLevel, String logPattern, boolean persist) throws Exception
logLevel - the log levellogPattern - the log patternpersist - whether to persist or notException - exception from the LoggingAdminStubpublic org.wso2.carbon.logging.admin.stub.types.carbon.LogData getSysLog()
throws Exception
Exception - exception from the LoggingAdminStubpublic void restoreToDefaults()
throws Exception
Exception - exception from the LoggingAdminStubpublic org.wso2.carbon.logging.admin.stub.types.carbon.AppenderData getAppenderData(String appenderName) throws Exception
appenderName - the appenderNameException - exception from the LoggingAdminStubCopyright © 2018 WSO2. All rights reserved.