public class ConsoleLog extends java.lang.Object implements ILogEventListener
| Constructor and Description |
|---|
ConsoleLog() |
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Flush the system output stream.
|
IConfigStore |
getConfigStore()
get the configuration store that is associated with this
log 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 ev)
Log the given event.
|
NameValuePairs |
retrieveLogContent(java.util.Hashtable<java.lang.String,java.lang.String> req)
Retrieve last "maxLine" number of system log with log lever >"level"
and from source "source".
|
NameValuePairs |
retrieveLogList(java.util.Hashtable<java.lang.String,java.lang.String> req)
Retrieve log file list.
|
void |
shutdown()
All operations need to be cleaned up for shutdown are done here
|
void |
startup()
Startup the instance.
|
public void log(ILogEvent ev)
log in interface ILogEventListenerev - log eventpublic void flush()
flush in interface ILogEventListenerpublic void shutdown()
shutdown in interface ILogEventListenerpublic IConfigStore getConfigStore()
getConfigStore in interface ILogEventListenerpublic void init(ISubsystem owner, IConfigStore config) throws EBaseException
ILogEventListenerinit in interface ILogEventListenerowner - The subsystem.config - Configuration store for this log listener.EBaseExceptionpublic void startup()
throws EBaseException
ILogEventListenerstartup in interface ILogEventListenerEBaseExceptionpublic NameValuePairs retrieveLogContent(java.util.Hashtable<java.lang.String,java.lang.String> req) throws javax.servlet.ServletException, java.io.IOException, EBaseException
retrieveLogContent in interface ILogEventListenerreq - a Hashtable containing the required information such as
log entry, log level, log source, and log nameservletExceptionjava.io.IOExceptionEBaseExceptionjavax.servlet.ServletException - For Servelet errros.public NameValuePairs retrieveLogList(java.util.Hashtable<java.lang.String,java.lang.String> req) throws javax.servlet.ServletException, java.io.IOException, EBaseException
retrieveLogList in interface ILogEventListenerjavax.servlet.ServletExceptionjava.io.IOExceptionEBaseExceptionpublic java.lang.String getImplName()
ILogEventListenergetImplName in interface ILogEventListenerpublic java.lang.String getDescription()
ILogEventListenergetDescription in interface ILogEventListenerpublic java.util.Vector<java.lang.String> getDefaultParams()
ILogEventListenergetDefaultParams in interface ILogEventListenerpublic java.util.Vector<java.lang.String> getInstanceParams()
ILogEventListenergetInstanceParams in interface ILogEventListener