com.caucho.http.log
Class AbstractErrorLog
java.lang.Object
|
+--com.caucho.http.log.AbstractErrorLog
- Direct Known Subclasses:
- ErrorLog
- public abstract class AbstractErrorLog
- extends java.lang.Object
Represents an log of every error log request to the server.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbg
protected static WriteStream dbg
logStream
protected WriteStream logStream
AbstractErrorLog
public AbstractErrorLog()
getLogStream
public WriteStream getLogStream()
- Returns the access-log's path.
setLogStream
public void setLogStream(WriteStream os)
- Sets the access-log's path.
init
public void init()
throws ServletException,
java.io.IOException
- Initialize the log.
log
public abstract void log(java.lang.String message,
HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
throws java.io.IOException
- Logs an error.
- Parameters:
message
- the error messagerequest
- the servlet requestresponse
- the servlet responseapplication
- the servlet context
log
public abstract void log(java.lang.String message,
java.lang.Throwable exception,
HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
throws java.io.IOException
- Logs an error.
- Parameters:
message
- the error messageexception
- the thrown exceptionrequest
- the servlet requestresponse
- the servlet responseapplication
- the servlet context
destroy
public void destroy()
throws java.io.IOException
- Cleanup the log.