public class LoggingService extends AppService implements LoggingServiceRemote
MAXLOGGERCACHE
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, 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, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public LoggingService() throws java.rmi.RemoteException
java.rmi.RemoteException
public LoggingService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- The "Server Environment" this Service is being created in.java.rmi.RemoteException
public java.lang.String generateLoggingProperties() throws MXException, java.rmi.RemoteException
generateLoggingProperties
in interface LoggingServiceRemote
MXException
java.rmi.RemoteException
public void applySettings(boolean startup) throws MXException, java.rmi.RemoteException
applySettings
in interface LoggingServiceRemote
startup
- Boolean flag to indicate whether the method is being called
when the server is starting up, or from the action menu.MXException
java.rmi.RemoteException
public java.lang.String getRootFolder() throws java.rmi.RemoteException
getRootFolder
in interface LoggingServiceRemote
java.rmi.RemoteException
public MboSetRemote getLoggerList() throws MXException, java.rmi.RemoteException
getLoggerList
in interface LoggingServiceRemote
MXException
java.rmi.RemoteException
public MboSetRemote getAppenderList() throws MXException, java.rmi.RemoteException
getAppenderList
in interface LoggingServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String getLogLevel(java.lang.String logKey) throws MXException, java.rmi.RemoteException
getLogLevel
in interface LoggingServiceRemote
logKey
- The key uniquely identifies the logger.MXException
java.rmi.RemoteException
public void setLogLevel(java.lang.String logKey, java.lang.String logLevel) throws MXException, java.rmi.RemoteException
setLogLevel
in interface LoggingServiceRemote
logkey
- The key uniquely identifies the logger.logLevel
- The loglevel to set to thelogger.MXException
java.rmi.RemoteException
public 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 LoggingServiceRemote
MXException
java.rmi.RemoteException
public java.lang.String getLTA_URL() throws MXException, java.rmi.RemoteException
getLTA_URL
in interface LoggingServiceRemote
MXException
java.rmi.RemoteException