|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.http.log.AbstractErrorLog
public abstract class AbstractErrorLog
Represents an log of every error log request to the server.
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
log
|
protected WriteStream |
logStream
|
| Constructor Summary | |
|---|---|
AbstractErrorLog()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Cleanup the log. |
WriteStream |
getLogStream()
Returns the access-log's path. |
void |
init()
Initialize the log. |
abstract void |
log(java.lang.String message,
HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
Logs an error. |
abstract void |
log(java.lang.String message,
java.lang.Throwable exception,
HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
Logs an error. |
void |
setLogStream(WriteStream os)
Sets the access-log's path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger log
protected WriteStream logStream
| Constructor Detail |
|---|
public AbstractErrorLog()
| Method Detail |
|---|
public WriteStream getLogStream()
public void setLogStream(WriteStream os)
public void init()
throws ServletException,
java.io.IOException
ServletException
java.io.IOException
public abstract void log(java.lang.String message,
HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
throws java.io.IOException
message - the error messagerequest - the servlet requestresponse - the servlet responseapplication - the servlet context
java.io.IOException
public abstract void log(java.lang.String message,
java.lang.Throwable exception,
HttpServletRequest request,
HttpServletResponse response,
ServletContext application)
throws java.io.IOException
message - the error messageexception - the thrown exceptionrequest - the servlet requestresponse - the servlet responseapplication - the servlet context
java.io.IOException
public void destroy()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||