|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.certsrv.logging.ConsoleLog
public class ConsoleLog
A log event listener which sends all log events to the system console/tty
| Constructor Summary | |
|---|---|
ConsoleLog()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleLog()
| Method Detail |
|---|
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 ILogEventListener
public void init(ISubsystem owner,
IConfigStore config)
throws EBaseException
ILogEventListener
init in interface ILogEventListenerowner - The subsystem.config - Configuration store for this log listener.
EBaseException
public void startup()
throws EBaseException
ILogEventListener
startup in interface ILogEventListenerEBaseException
public NameValuePairs retrieveLogContent(java.util.Hashtable 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 name
servletException
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 ILogEventListenerjavax.servlet.ServletException
java.io.IOException
EBaseExceptionpublic java.lang.String getImplName()
ILogEventListener
getImplName in interface ILogEventListenerpublic java.lang.String getDescription()
ILogEventListener
getDescription in interface ILogEventListenerpublic java.util.Vector getDefaultParams()
ILogEventListener
getDefaultParams in interface ILogEventListenerpublic java.util.Vector getInstanceParams()
ILogEventListener
getInstanceParams in interface ILogEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||