com.caucho.http.log
Class ErrorLog

java.lang.Object
  extended by com.caucho.http.log.AbstractErrorLog
      extended by com.caucho.http.log.ErrorLog

public class ErrorLog
extends AbstractErrorLog

Represents an log of every error log request to the server.


Field Summary
 
Fields inherited from class com.caucho.http.log.AbstractErrorLog
log, logStream
 
Constructor Summary
ErrorLog()
           
 
Method Summary
 void destroy()
          Cleanup the log.
 void log(java.lang.String message, HttpServletRequest request, HttpServletResponse response, ServletContext application)
          Logs an error.
 void log(java.lang.String message, java.lang.Throwable e, HttpServletRequest request, HttpServletResponse response, ServletContext application)
          Logs a message to the error log.
 
Methods inherited from class com.caucho.http.log.AbstractErrorLog
getLogStream, init, setLogStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorLog

public ErrorLog()
Method Detail

log

public void log(java.lang.String message,
                HttpServletRequest request,
                HttpServletResponse response,
                ServletContext application)
         throws java.io.IOException
Logs an error.

Specified by:
log in class AbstractErrorLog
Parameters:
message - the error message
request - the servlet request
response - the servlet response
application - the servlet context
Throws:
java.io.IOException

log

public void log(java.lang.String message,
                java.lang.Throwable e,
                HttpServletRequest request,
                HttpServletResponse response,
                ServletContext application)
         throws java.io.IOException
Logs a message to the error log.

Specified by:
log in class AbstractErrorLog
Parameters:
log - the error log to write the message.
message - the message to write
e - the exception to write
Throws:
java.io.IOException

destroy

public void destroy()
             throws java.io.IOException
Cleanup the log.

Overrides:
destroy in class AbstractErrorLog
Throws:
java.io.IOException