|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.http.log.AbstractAccessLog | +--com.caucho.http.log.AccessLog
Represents an log of every top-level request to the server.
Fields inherited from class com.caucho.http.log.AbstractAccessLog |
dbg, path |
Constructor Summary | |
AccessLog()
|
Method Summary | |
void |
destroy()
Closes the log, flushing the results. |
void |
flush()
Flushes the log. |
protected java.lang.String |
getArchiveName(long time)
Returns the name of the archived file |
void |
init()
Initialize the log. |
void |
log(HttpServletRequest req,
HttpServletResponse res,
ServletContext application)
Logs a request using the current format. |
void |
setArchiveFormat(java.lang.String format)
Sets the archive name format |
void |
setFormat(java.lang.String format)
Sets the access log format. |
void |
setRolloverPeriod(long period)
Sets the log rollover period, rounded up to the nearest hour. |
void |
setRolloverSize(int size)
Sets the log rollover size, rounded up to the megabyte. |
Methods inherited from class com.caucho.http.log.AbstractAccessLog |
getPath, setPath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccessLog()
Method Detail |
public void setFormat(java.lang.String format)
public void setArchiveFormat(java.lang.String format)
public void init() throws ServletException, java.io.IOException
init
in class AbstractAccessLog
public void setRolloverPeriod(long period)
period
- the new rollover period in milliseconds.public void setRolloverSize(int size)
size
- maximum size of the log file, rolled up to the nearest meg.public void log(HttpServletRequest req, HttpServletResponse res, ServletContext application) throws java.io.IOException
log
in class AbstractAccessLog
request
- the servlet request.response
- the servlet response.protected java.lang.String getArchiveName(long time)
time
- the archive datepublic void flush() throws java.io.IOException
public void destroy() throws java.io.IOException
destroy
in class AbstractAccessLog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |