|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.log.AbstractAccessLog
com.caucho.server.log.AccessLog
public class AccessLog
Represents an log of every top-level request to the server.
| Field Summary | |
|---|---|
static int |
BUFFER_SIZE
|
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
| Fields inherited from class com.caucho.server.log.AbstractAccessLog |
|---|
_path, _pathFormat |
| Constructor Summary | |
|---|---|
AccessLog()
|
|
| Method Summary | |
|---|---|
void |
addExclude(java.util.regex.Pattern pattern)
Adds an exclusion pattern. |
void |
destroy()
Closes the log, flushing the results. |
void |
flush()
Flushes the log. |
void |
handleAlarm(Alarm alarm)
The alarm listener. |
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 |
setAutoFlush(boolean isAutoFlush)
Sets the auto-flush attribute. |
void |
setAutoFlushTime(Period period)
Sets the autoFlushTime |
void |
setFormat(java.lang.String format)
Sets the access log format. |
void |
setPath(Path path)
Sets the log path |
void |
setPathFormat(java.lang.String pathFormat)
Sets the formatted path. |
void |
setRolloverCheckTime(long period)
Sets how often the log rollover will be checked. |
void |
setRolloverCount(int count)
Sets the maximum number of rolled logs. |
void |
setRolloverCron(CronType cron)
Sets the log rollover cron |
void |
setRolloverPeriod(Period period)
Sets the log rollover period, rounded up to the nearest hour. |
void |
setRolloverSize(Bytes bytes)
Sets the log rollover size, rounded up to the megabyte. |
void |
setSharedBuffer(boolean isSharedBuffer)
Sets the shared buffer attribute. |
| Methods inherited from class com.caucho.server.log.AbstractAccessLog |
|---|
addInit, getPath, getPathFormat, isHostnameDnsLookup, setHostnameDnsLookup, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final L10N L
protected static final java.util.logging.Logger log
public static final int BUFFER_SIZE
| Constructor Detail |
|---|
public AccessLog()
| Method Detail |
|---|
public void setFormat(java.lang.String format)
public void setPath(Path path)
setPath in class AbstractAccessLog
public void setPathFormat(java.lang.String pathFormat)
throws ConfigException
setPathFormat in class AbstractAccessLogConfigExceptionpublic void setArchiveFormat(java.lang.String format)
public void setRolloverCount(int count)
count - maximum count of the log filepublic void setRolloverCron(CronType cron)
cron - the cron string for rollover timespublic void setRolloverPeriod(Period period)
period - the new rollover period in milliseconds.public void setRolloverSize(Bytes bytes)
size - maximum size of the log filepublic void setRolloverCheckTime(long period)
period - how often the log rollover will be checked.public void setAutoFlush(boolean isAutoFlush)
public void setAutoFlushTime(Period period)
public void setSharedBuffer(boolean isSharedBuffer)
public void addExclude(java.util.regex.Pattern pattern)
public void init()
throws ServletException,
java.io.IOException
init in class AbstractAccessLogServletException
java.io.IOException
public void log(HttpServletRequest req,
HttpServletResponse res,
ServletContext application)
throws java.io.IOException
log in class AbstractAccessLogreq - the servlet request.res - the servlet response.
java.io.IOExceptionpublic void flush()
flush in class AbstractAccessLogpublic void handleAlarm(Alarm alarm)
handleAlarm in interface AlarmListener
public void destroy()
throws java.io.IOException
destroy in class AbstractAccessLogjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||