Class LogSubsystem
java.lang.Object
com.netscape.cmscore.logging.LogSubsystem
- All Implemented Interfaces:
ISubsystem,ILogSubsystem
A class represents a log subsystem.
- Version:
- $Revision$, $Date$
- Author:
- thomask, mzhao
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the root configuration storage of this system.getId()Retrieves the name of this subsystem.static LogSubsystemRetrieves singleton: the LogSubsystem.getLogDefaultParams(String implName) Get the default configuration parameter names associated with a plugin.getLogInstance(String insName) Retrieve log instance by it's namegetLogInstanceParams(String insName) Get the default configuration parameter names associated with a log instance.get the list of log instances that are availableRetrieve plugin name (implementation name) of the log event listener.get the list of log plugins that are availablevoidinit(IConfigStore config) Initializes the log subsystem.voidSets specific to this subsystem.voidshutdown()Stops this subsystem.voidstartup()Notifies this subsystem if owner is in running mode.
-
Field Details
-
logger
public static org.slf4j.Logger logger -
PROP_LOGGING
- See Also:
-
ID
- See Also:
-
PROP_CLASS
- See Also:
-
PROP_IMPL
- See Also:
-
PROP_PLUGIN
- See Also:
-
PROP_INSTANCE
- See Also:
-
mLogPlugins
-
mLogInsts
-
auditEvents
-
-
Method Details
-
getId
Description copied from interface:ISubsystemRetrieves the name of this subsystem.- Specified by:
getIdin interfaceISubsystem- Returns:
- subsystem identifier
-
setId
Description copied from interface:ISubsystemSets specific to this subsystem.- Specified by:
setIdin interfaceISubsystem- Parameters:
id- subsystem identifier- Throws:
EBaseException- failed to set id
-
init
Initializes the log subsystem.- Specified by:
initin interfaceISubsystem- Parameters:
config- configuration store- Throws:
EBaseException- failed to initialize
-
getAuditEvents
-
startup
Description copied from interface:ISubsystemNotifies this subsystem if owner is in running mode.- Specified by:
startupin interfaceISubsystem- Throws:
EBaseException- failed to start up
-
shutdown
-
getConfigStore
Returns the root configuration storage of this system.- Specified by:
getConfigStorein interfaceISubsystem- Returns:
- configuration store of this subsystem
-
getInstance
Retrieves singleton: the LogSubsystem. -
getLogPluginName
Description copied from interface:ILogSubsystemRetrieve plugin name (implementation name) of the log event listener. If no plug name found, an empty string is returned- Specified by:
getLogPluginNamein interfaceILogSubsystem- Parameters:
log- the log event listener- Returns:
- the log event listener's plugin name
-
getLogInstance
Retrieve log instance by it's name- Specified by:
getLogInstancein interfaceILogSubsystem- Parameters:
insName- the log instance name in String- Returns:
- the log instance in ILogEventListener
-
getLogPlugins
Description copied from interface:ILogSubsystemget the list of log plugins that are available- Specified by:
getLogPluginsin interfaceILogSubsystem- Returns:
- log plugins in a Hashtable. Each entry in the Hashtable contains the name/value pair of pluginName/LogPlugin
- See Also:
-
getLogInsts
Description copied from interface:ILogSubsystemget the list of log instances that are available- Specified by:
getLogInstsin interfaceILogSubsystem- Returns:
- log instances in a Hashtable. Each entry in the Hashtable contains the name/value pair of instName/ILogEventListener
- See Also:
-
getLogDefaultParams
Description copied from interface:ILogSubsystemGet the default configuration parameter names associated with a plugin. It is used by administration servlet to handle log configuration when a new log instance is added.- Specified by:
getLogDefaultParamsin interfaceILogSubsystem- Parameters:
implName- The implementation name for which the configuration parameters are to be configured- Returns:
- a Vector of default configuration paramter names associated with this log plugin
- Throws:
ELogException- when instantiation of the plugin implementation fails.
-
getLogInstanceParams
Description copied from interface:ILogSubsystemGet the default configuration parameter names associated with a log instance. It is used by administration servlet to handle log instance configuration.- Specified by:
getLogInstanceParamsin interfaceILogSubsystem- Parameters:
insName- The instance name for which the configuration parameters are to be configured- Returns:
- a Vector of default configuration paramter names associated with this log instance.
- Throws:
ELogException
-