RolloverFileOutputStream.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private String | |
| private String | |
| private transient OutputStream | |
| private final AutoLock | |
| private transient OutputStream | |
| private int | |
| private String | |
| private transient Writer | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doStart()
Overrides org. |
| protected void | doStop()
Overrides org. |
| public String | Returns: file name of the request log, or null if not applicableRetrieve the file name of the request log with the expanded
date wildcard if the output is written to the disk using
|
| public String | |
| public String | |
| public int | Returns: number of days to keep a log fileRetrieve the number of days before rotated log files are deleted. |
| public String | |
| public boolean | |
| public void | setAppend(boolean
true - request log file will be appended after restart,
false - request log file will be overwritten after restart append)Set append to log flag. |
| public void | setFilename(String
file name of the request log filename)Set the output file name of the request log. |
| public void | setFilenameDateFormat(String
format string that is passed to logFileDateFormat)RolloverFileOutputStreamSet the log file name date format. |
| public void | setRetainDays(int
number of days to keep a log file retainDays)Set the number of days before rotated log files are deleted. |
| public void | |
| public void |
| _append | back to summary |
|---|---|
| private boolean _append | |
| _closeOut | back to summary |
|---|---|
| private boolean _closeOut | |
| _filename | back to summary |
|---|---|
| private String _filename | |
| _filenameDateFormat | back to summary |
|---|---|
| private String _filenameDateFormat | |
| _fileOut | back to summary |
|---|---|
| private transient OutputStream _fileOut | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock Hides org. | |
| _out | back to summary |
|---|---|
| private transient OutputStream _out | |
| _retainDays | back to summary |
|---|---|
| private int _retainDays | |
| _timeZone | back to summary |
|---|---|
| private String _timeZone | |
| _writer | back to summary |
|---|---|
| private transient Writer _writer | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| RequestLogWriter | back to summary |
|---|---|
| public RequestLogWriter() | |
| RequestLogWriter | back to summary |
|---|---|
| public RequestLogWriter(String filename) | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Method to override to start the lifecycle | |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. Doc from org. Method to override to stop the lifecycle | |
| getDatedFilename | back to summary |
|---|---|
| public String getDatedFilename() Retrieve the file name of the request log with the expanded
date wildcard if the output is written to the disk using
| |
| getFileName | back to summary |
|---|---|
| public String getFileName() Retrieve the output file name of the request log.
| |
| getFilenameDateFormat | back to summary |
|---|---|
| public String getFilenameDateFormat() Retrieve the file name date format string.
| |
| getRetainDays | back to summary |
|---|---|
| public int getRetainDays() Retrieve the number of days before rotated log files are deleted.
| |
| getTimeZone | back to summary |
|---|---|
public String getTimeZone()
| |
| isAppend | back to summary |
|---|---|
| public boolean isAppend() Retrieve append to log flag.
| |
| setAppend | back to summary |
|---|---|
| public void setAppend(boolean append) Set append to log flag.
| |
| setFilename | back to summary |
|---|---|
| public void setFilename(String filename) Set the output file name of the request log.
The file name may be in the format expected by
| |
| setFilenameDateFormat | back to summary |
|---|---|
| public void setFilenameDateFormat(String logFileDateFormat) Set the log file name date format.
| |
| setRetainDays | back to summary |
|---|---|
| public void setRetainDays(int retainDays) Set the number of days before rotated log files are deleted.
| |
| setTimeZone | back to summary |
|---|---|
| public void setTimeZone(String timeZone) | |
| write | back to summary |
|---|---|
| public void write(String requestEntry) throws IOException Implements org.
| |