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 |
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 |
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 req)
Retrieve last "maxLine" number of system log with log lever >"level"
and from source "source".
|
NameValuePairs |
retrieveLogList(java.util.Hashtable 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 ILogEventListener
ev
- log eventpublic void flush()
flush
in interface ILogEventListener
public void shutdown()
shutdown
in interface ILogEventListener
public IConfigStore getConfigStore()
getConfigStore
in interface ILogEventListener
public void init(ISubsystem owner, IConfigStore config) throws EBaseException
ILogEventListener
init
in interface ILogEventListener
owner
- The subsystem.config
- Configuration store for this log listener.EBaseException
public void startup() throws EBaseException
ILogEventListener
startup
in interface ILogEventListener
EBaseException
public NameValuePairs retrieveLogContent(java.util.Hashtable req) throws javax.servlet.ServletException, java.io.IOException, EBaseException
retrieveLogContent
in interface ILogEventListener
req
- a Hashtable containing the required information such as
log entry, log level, log source, and log nameservletException
java.io.IOException
EBaseException
javax.servlet.ServletException
- For Servelet errros.public NameValuePairs retrieveLogList(java.util.Hashtable req) throws javax.servlet.ServletException, java.io.IOException, EBaseException
retrieveLogList
in interface ILogEventListener
javax.servlet.ServletException
java.io.IOException
EBaseException
public java.lang.String getImplName()
ILogEventListener
getImplName
in interface ILogEventListener
public java.lang.String getDescription()
ILogEventListener
getDescription
in interface ILogEventListener
public java.util.Vector getDefaultParams()
ILogEventListener
getDefaultParams
in interface ILogEventListener
public java.util.Vector getInstanceParams()
ILogEventListener
getInstanceParams
in interface ILogEventListener