CustomRequestLog given format string CustomRequestLog.EXTENDED_NCSA_FORMAT with a RequestLogWriter@Deprecated @ManagedObject(value="NCSA standard format request log") public class NCSARequestLog extends AbstractNCSARequestLog
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.AbstractLifeCycle.AbstractLifeCycleListenerRequestLog.Collection, RequestLog.WriterContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
NCSARequestLog()
Deprecated.
Create request log object with default settings.
|
NCSARequestLog(RequestLogWriter writer)
Deprecated.
Create request log object given a RequestLogWriter file name.
|
NCSARequestLog(String filename)
Deprecated.
Create request log object with specified output file name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDatedFilename()
Deprecated.
Retrieve the file name of the request log with the expanded
date wildcard if the output is written to the disk using
RolloverFileOutputStream. |
String |
getFilename()
Deprecated.
Retrieve the output file name of the request log.
|
String |
getFilenameDateFormat()
Deprecated.
Retrieve the file name date format string.
|
int |
getRetainDays()
Deprecated.
Retrieve the number of days before rotated log files are deleted.
|
boolean |
isAppend()
Deprecated.
Retrieve append to log flag.
|
void |
setAppend(boolean append)
Deprecated.
Set append to log flag.
|
void |
setFilename(String filename)
Deprecated.
Set the output file name of the request log.
|
void |
setFilenameDateFormat(String logFileDateFormat)
Deprecated.
Set the log file name date format.
|
void |
setLogTimeZone(String tz)
Deprecated.
Set the timezone of the request log.
|
void |
setRetainDays(int retainDays)
Deprecated.
Set the number of days before rotated log files are deleted.
|
void |
write(String requestEntry)
Deprecated.
Write requestEntry out.
|
getIgnorePaths, getLogCookies, getLogDateFormat, getLogLatency, getLogLocale, getLogServer, getLogTimeZone, getPreferProxiedForAddress, isExtended, isLogDispatch, log, setExtended, setIgnorePaths, setLogCookies, setLogDateFormat, setLogDispatch, setLogLatency, setLogLocale, setLogServer, setPreferProxiedForAddressaddBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedpublic NCSARequestLog()
public NCSARequestLog(String filename)
filename - the file name for the request log.
This may be in the format expected
by RolloverFileOutputStreampublic NCSARequestLog(RequestLogWriter writer)
writer - the writer which manages the output of the formatted string
produced by the RequestLogpublic void setFilename(String filename)
RolloverFileOutputStream.filename - file name of the request logpublic void setLogTimeZone(String tz)
AbstractNCSARequestLogsetLogTimeZone in class AbstractNCSARequestLogtz - timezone string@ManagedAttribute(value="file of log") public String getFilename()
public String getDatedFilename()
RolloverFileOutputStream.public void setRetainDays(int retainDays)
retainDays - number of days to keep a log file@ManagedAttribute(value="number of days that log files are kept") public int getRetainDays()
public void setAppend(boolean append)
append - true - request log file will be appended after restart,
false - request log file will be overwritten after restart@ManagedAttribute(value="existing log files are appends to the new one") public boolean isAppend()
public void setFilenameDateFormat(String logFileDateFormat)
logFileDateFormat - format string that is passed to RolloverFileOutputStreamRolloverFileOutputStream.RolloverFileOutputStream(String, boolean, int, TimeZone, String, String)public String getFilenameDateFormat()
public void write(String requestEntry) throws IOException
AbstractNCSARequestLogwrite in class AbstractNCSARequestLogrequestEntry - the request entryIOException - if unable to write the entryCopyright © 2010 - 2020 Adobe. All Rights Reserved