|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implemented by a custom class for logging server events. SilverStream supplies a default logger class for logging these events, but you can replace it with your own class that implements this interface.
Method Summary | |
void |
enableErrorLogging(boolean doEnable,
String errorLogFileName)
Enable or disable error logging. |
void |
enableLogging(boolean doEnable,
String logFileName)
Enable or disable standard HTTP-level logging. |
void |
enableTraceLogging(boolean doEnable,
String traceLogFileName)
Enable or disable trace logging. |
void |
errlog(AgiSession session,
String msg)
Log an error message on behalf of the specified session to an error log. |
void |
errlog(String msg)
Log an error message not associated with any particular session to the error log. |
void |
initialize(AgiServer server)
Initialize this logger for the specified server. |
void |
log(AgiHttpServletRequest request,
AgiHttpServletResponse reply,
int nbytes,
long duration)
Log normally a fully handled request. |
void |
log(String msg)
Log a message not associated with any particular session or request to the error log (synonymous with errorlog(msg) . |
void |
shutdown()
Shut down the logger, closing any resources it may hold. |
void |
trace(AgiSession session,
String msg)
Log a tracing message to the trace log. |
void |
trace(String msg)
Log a tracing message not associated with a particular session to the trace log |
Method Detail |
public void log(AgiHttpServletRequest request, AgiHttpServletResponse reply, int nbytes, long duration)
The logger must not modify the request or reply. The logger class should only extract information from the request or response; it should not change the request or response.
request
- the HTTP requestreply
- the HTTP responsenbytes
- the number of bytes sent back to this clientduration
- the time it took to process this request, in millisecondspublic void log(String msg)
errorlog(msg)
.msg
- the message to be loggedpublic void errlog(AgiSession session, String msg)
session
- the session logging the errormsg
- the message to be loggedpublic void errlog(String msg)
msg
- the message to be loggedpublic void trace(AgiSession session, String msg)
session
- the session logging the messagemsg
- the message to be loggedpublic void trace(String msg)
msg
- the message to be loggedpublic void initialize(AgiServer server)
public void shutdown()
public void enableLogging(boolean doEnable, String logFileName)
public void enableErrorLogging(boolean doEnable, String errorLogFileName)
public void enableTraceLogging(boolean doEnable, String traceLogFileName)
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |