RequestLog implementation outputs logs in the pseudo-standard NCSA common log format.
Configuration options allow a choice between the standard Common Log Format (as used in the 3 log format)
and the Combined Log Format (single log format).
This log format can be output by most web servers, and almost all web log analysis software can understand
these formats.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private transient ArrayList | |
| private boolean | |
| private transient char[] | |
| private boolean | |
| private String | |
| private String | |
| private transient OutputStream | |
| private transient PathMap | |
| private String[] | |
| private boolean | |
| private transient DateCache | |
| private String | |
| private boolean | |
| private Locale | |
| private boolean | |
| private String | |
| private transient OutputStream | |
| private boolean | |
| private int | |
| private transient Writer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NCSARequestLog(String
The filename for the request log. This may be in the format expected by filename)RolloverFileOutputStream
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public String | |
| public String | |
| public String | |
| public String[] | |
| public boolean | |
| public String | |
| public boolean | |
| public Locale | |
| public boolean | |
| public String | |
| public int | |
| public boolean | |
| public boolean | |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void | setFilename(String
The filename for the request log. This may be in the format expected by filename)RolloverFileOutputStream
|
| public void | setFilenameDateFormat(String
the logFileDateFormat to pass to logFileDateFormat)RolloverFileOutputStreamSet the log file date format. |
| public void | |
| public void | |
| public void | setLogDateFormat(String
Format for the timestamps in the log file. If not set,
the pre-formated request timestamp is used. format)
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| _append | back to summary |
|---|---|
| private boolean _append | |
| _buffers | back to summary |
|---|---|
| private transient ArrayList<E> _buffers | |
| _closeOut | back to summary |
|---|---|
| private boolean _closeOut | |
| _copy | back to summary |
|---|---|
| private transient char[] _copy | |
| _extended | back to summary |
|---|---|
| private boolean _extended | |
| _filename | back to summary |
|---|---|
| private String _filename | |
| _filenameDateFormat | back to summary |
|---|---|
| private String _filenameDateFormat | |
| _fileOut | back to summary |
|---|---|
| private transient OutputStream _fileOut | |
| _ignorePathMap | back to summary |
|---|---|
| private transient PathMap _ignorePathMap | |
| _ignorePaths | back to summary |
|---|---|
| private String[] _ignorePaths | |
| _logCookies | back to summary |
|---|---|
| private boolean _logCookies | |
| _logDateCache | back to summary |
|---|---|
| private transient DateCache _logDateCache | |
| _logDateFormat | back to summary |
|---|---|
| private String _logDateFormat | |
| _logLatency | back to summary |
|---|---|
| private boolean _logLatency | |
| _logLocale | back to summary |
|---|---|
| private Locale _logLocale | |
| _logServer | back to summary |
|---|---|
| private boolean _logServer | |
| _logTimeZone | back to summary |
|---|---|
| private String _logTimeZone | |
| _out | back to summary |
|---|---|
| private transient OutputStream _out | |
| _preferProxiedForAddress | back to summary |
|---|---|
| private boolean _preferProxiedForAddress | |
| _retainDays | back to summary |
|---|---|
| private int _retainDays | |
| _writer | back to summary |
|---|---|
| private transient Writer _writer | |
| NCSARequestLog | back to summary |
|---|---|
| public NCSARequestLog() | |
| NCSARequestLog | back to summary |
|---|---|
public NCSARequestLog(String filename)
| |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception | |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception | |
| getDatedFilename | back to summary |
|---|---|
| public String getDatedFilename() | |
| getFilename | back to summary |
|---|---|
| public String getFilename() | |
| getFilenameDateFormat | back to summary |
|---|---|
public String getFilenameDateFormat()
| |
| getIgnorePaths | back to summary |
|---|---|
| public String[] getIgnorePaths() | |
| getLogCookies | back to summary |
|---|---|
| public boolean getLogCookies() | |
| getLogDateFormat | back to summary |
|---|---|
| public String getLogDateFormat() | |
| getLogLatency | back to summary |
|---|---|
| public boolean getLogLatency() | |
| getLogLocale | back to summary |
|---|---|
| public Locale getLogLocale() | |
| getLogServer | back to summary |
|---|---|
| public boolean getLogServer() | |
| getLogTimeZone | back to summary |
|---|---|
| public String getLogTimeZone() | |
| getRetainDays | back to summary |
|---|---|
| public int getRetainDays() | |
| isAppend | back to summary |
|---|---|
| public boolean isAppend() | |
| isExtended | back to summary |
|---|---|
| public boolean isExtended() | |
| log | back to summary |
|---|---|
| public void log(Request request, Response response) Implements org. | |
| logExtended | back to summary |
|---|---|
| protected void logExtended(Request request, Response response, Writer writer) throws IOException | |
| setAppend | back to summary |
|---|---|
| public void setAppend(boolean append) | |
| setExtended | back to summary |
|---|---|
| public void setExtended(boolean extended) | |
| setFilename | back to summary |
|---|---|
public void setFilename(String filename)
| |
| setFilenameDateFormat | back to summary |
|---|---|
| public void setFilenameDateFormat(String logFileDateFormat) Set the log file date format.
| |
| setIgnorePaths | back to summary |
|---|---|
| public void setIgnorePaths(String[] ignorePaths) | |
| setLogCookies | back to summary |
|---|---|
| public void setLogCookies(boolean logCookies) | |
| setLogDateFormat | back to summary |
|---|---|
public void setLogDateFormat(String format)
| |
| setLogLatency | back to summary |
|---|---|
| public void setLogLatency(boolean logLatency) | |
| setLogLocale | back to summary |
|---|---|
| public void setLogLocale(Locale logLocale) | |
| setLogServer | back to summary |
|---|---|
| public void setLogServer(boolean logServer) | |
| setLogTimeZone | back to summary |
|---|---|
| public void setLogTimeZone(String tz) | |
| setPreferProxiedForAddress | back to summary |
|---|---|
| public void setPreferProxiedForAddress(boolean preferProxiedForAddress) | |
| setRetainDays | back to summary |
|---|---|
| public void setRetainDays(int retainDays) | |