public class LoggingAdmin extends Object
| Constructor and Description |
|---|
LoggingAdmin() |
| Modifier and Type | Method and Description |
|---|---|
LoggerData[] |
getAllLoggerData(String logNameFilter,
boolean beginsWith) |
AppenderData |
getAppenderData(String appenderName) |
LoggerData |
getLoggerData(String loggerName) |
SyslogData |
getSyslogData() |
LogData |
getSystemLog()
Get all the information regarding the system log4j information but Logger information
such as logger, parent logger, effective level and additivity.
|
boolean |
isStratosService() |
String |
removeSyslogPattern(String appenderPattern) |
void |
restoreDefaults() |
void |
updateAllAppenderData(String appenderName,
String appenderPattern,
String threshold,
String logFileName,
String sysLogHost,
String facility,
boolean persist)
Set the Appender information.
|
void |
updateLoggerData(String loggerName,
String loggerLevel,
boolean additivity,
boolean persist) |
void |
updateSyslogConfig(String url,
String port,
String realm,
String userName,
String password) |
void |
updateSystemLog(String logLevel,
String logPattern,
boolean persist)
Globally update the System Logging configuration.
|
public LogData getSystemLog() throws Exception
Exceptionpublic LoggerData[] getAllLoggerData(String logNameFilter, boolean beginsWith)
public AppenderData getAppenderData(String appenderName)
appenderName - The name of the appenderappenderNamepublic LoggerData getLoggerData(String loggerName)
public void updateSyslogConfig(String url, String port, String realm, String userName, String password) throws LoggingAdminException
LoggingAdminExceptionpublic SyslogData getSyslogData() throws LoggingAdminException
LoggingAdminExceptionpublic void updateAllAppenderData(String appenderName, String appenderPattern, String threshold, String logFileName, String sysLogHost, String facility, boolean persist) throws Exception
appenderName - The name of the AppenderappenderPattern - The log patternthreshold - The logging thresholdlogFileName - log file name - Only relevant to FileAppenderssysLogHost - The Syslog host - Only relevant to SyslogAppendersfacility - The Syslog facility - Only relevant to SyslogAppenderspersist - true - indicates persist these changes to the DB; false - indicates
make changes only in memory and do not persist the changes to DBorg.apache.axis2.AxisFault - If failure occurs during setting of these valuesExceptionpublic void updateSystemLog(String logLevel, String logPattern, boolean persist) throws Exception
logLevel - The global log level to be setlogPattern - The global log pattern to be setpersist - true - indicates persist these changes to the DB; false - indicates make
changes only in memory and do not persist the changes to DBExceptionpublic void updateLoggerData(String loggerName, String loggerLevel, boolean additivity, boolean persist) throws Exception
ExceptionCopyright © 2017 WSO2. All rights reserved.