public interface ILogEventListener
extends java.util.EventListener
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flushes the log buffers (if any).
|
IConfigStore |
getConfigStore()
Get the configuration store for the log event listener.
|
java.util.Vector<java.lang.String> |
getDefaultParams()
Return list of default config parameters for this log event listener.
|
java.lang.String |
getDescription()
Returns the description of this log event listener.
|
java.lang.String |
getImplName()
Returns implementation name.
|
java.util.Vector<java.lang.String> |
getInstanceParams()
Return list of instance config parameters for this log event listener.
|
void |
init(ISubsystem owner,
IConfigStore config)
Initialize this log listener
|
void |
log(ILogEvent event)
The event notification method: Logs event.
|
NameValuePairs |
retrieveLogContent(java.util.Hashtable<java.lang.String,java.lang.String> req)
Retrieve last "maxLine" number of system logs with log level >"level"
and from source "source".
|
NameValuePairs |
retrieveLogList(java.util.Hashtable<java.lang.String,java.lang.String> req)
Retrieve list of log files.
|
void |
shutdown()
Closes the log file and destroys any associated threads.
|
void |
startup()
Startup the instance.
|
void log(ILogEvent event) throws ELogException
event - The log event to be processed.ELogExceptionvoid flush()
void shutdown()
IConfigStore getConfigStore()
void init(ISubsystem owner, IConfigStore config) throws EBaseException
owner - The subsystem.config - Configuration store for this log listener.initialization - error.EBaseExceptionvoid startup()
throws EBaseException
EBaseExceptionNameValuePairs retrieveLogContent(java.util.Hashtable<java.lang.String,java.lang.String> req) throws javax.servlet.ServletException, java.io.IOException, EBaseException
req - a Hashtable containing the required information such as
log entry, log level, log source, and log name.javax.servlet.ServletException - For Servelet errros.java.io.IOException - For input/output problems.EBaseException - For other problems.NameValuePairs retrieveLogList(java.util.Hashtable<java.lang.String,java.lang.String> req) throws javax.servlet.ServletException, java.io.IOException, EBaseException
javax.servlet.ServletExceptionjava.io.IOExceptionEBaseExceptionjava.lang.String getImplName()
java.lang.String getDescription()
java.util.Vector<java.lang.String> getDefaultParams()
java.util.Vector<java.lang.String> getInstanceParams()