public class LoggingService extends AppService implements LoggingServiceRemote
MAXLOGGERCACHEAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix| Constructor and Description |
|---|
LoggingService() |
LoggingService(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
applySettings(boolean startup)
Reload logging configurations from database tables and apply the settings.
|
java.lang.String |
generateLoggingProperties()
Return the logging properties in the format of a property file.
|
MboSetRemote |
getAppenderList()
Returns all the available appenders.
|
java.util.Vector<java.lang.String> |
getLogFiles()
Returns a list of log file paths.
|
MboSetRemote |
getLoggerList()
Returns all the available loggers.
|
java.lang.String |
getLogLevel(java.lang.String logKey)
Given a logger by its logkey, return its log level.
|
java.lang.String |
getLTA_URL()
Launch the Log and Trace Analyzer.
|
static boolean |
getReadFromFile()
Returns the flag which indicates whether the server's logging is read from a properties file.
|
java.lang.String |
getRootFolder()
Returns the root logging folder.
|
void |
setLogLevel(java.lang.String logKey,
java.lang.String logLevel)
Sets the log level of the specified logger.
|
static void |
setReadFromFile(boolean flag)
Sets the flag which indicates whether the server's logging is read from a properties file.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, init, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic LoggingService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic LoggingService(MXServer mxServer) throws java.rmi.RemoteException
mxServer - The "Server Environment" this Service is being created in.java.rmi.RemoteExceptionpublic java.lang.String generateLoggingProperties()
throws MXException,
java.rmi.RemoteException
generateLoggingProperties in interface LoggingServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic void applySettings(boolean startup)
throws MXException,
java.rmi.RemoteException
applySettings in interface LoggingServiceRemotestartup - Boolean flag to indicate whether the method is being called
when the server is starting up, or from the action menu.MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getRootFolder()
throws java.rmi.RemoteException
getRootFolder in interface LoggingServiceRemotejava.rmi.RemoteExceptionpublic MboSetRemote getLoggerList() throws MXException, java.rmi.RemoteException
getLoggerList in interface LoggingServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getAppenderList() throws MXException, java.rmi.RemoteException
getAppenderList in interface LoggingServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getLogLevel(java.lang.String logKey)
throws MXException,
java.rmi.RemoteException
getLogLevel in interface LoggingServiceRemotelogKey - The key uniquely identifies the logger.MXExceptionjava.rmi.RemoteExceptionpublic void setLogLevel(java.lang.String logKey,
java.lang.String logLevel)
throws MXException,
java.rmi.RemoteException
setLogLevel in interface LoggingServiceRemotelogkey - The key uniquely identifies the logger.logLevel - The loglevel to set to thelogger.MXExceptionjava.rmi.RemoteExceptionpublic static void setReadFromFile(boolean flag)
flag - public static boolean getReadFromFile()
public java.util.Vector<java.lang.String> getLogFiles()
throws MXException,
java.rmi.RemoteException
getLogFiles in interface LoggingServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getLTA_URL()
throws MXException,
java.rmi.RemoteException
getLTA_URL in interface LoggingServiceRemoteMXExceptionjava.rmi.RemoteException