public class ErrorLog extends AbstractErrorLog
log, logStream
Constructor and Description |
---|
ErrorLog() |
Modifier and Type | Method and Description |
---|---|
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.
|
getLogStream, init, setLogStream
public void log(java.lang.String message, HttpServletRequest request, HttpServletResponse response, ServletContext application) throws java.io.IOException
log
in class AbstractErrorLog
message
- the error messagerequest
- the servlet requestresponse
- the servlet responseapplication
- the servlet contextjava.io.IOException
public void log(java.lang.String message, java.lang.Throwable e, HttpServletRequest request, HttpServletResponse response, ServletContext application) throws java.io.IOException
log
in class AbstractErrorLog
log
- the error log to write the message.message
- the message to writee
- the exception to writejava.io.IOException
public void destroy() throws java.io.IOException
destroy
in class AbstractErrorLog
java.io.IOException