Package org.eclipse.jetty.server
Class RequestLogWriter
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.RequestLogWriter
- All Implemented Interfaces:
RequestLog.Writer,LifeCycle
- Direct Known Subclasses:
AsyncRequestLogWriter
@ManagedObject("Request Log writer which writes to file")
@Deprecated(since="2021-05-27")
public class RequestLogWriter
extends AbstractLifeCycle
implements RequestLog.Writer
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Writer which outputs pre-formatted request log strings to a file using
RolloverFileOutputStream.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Retrieve the file name of the request log with the expanded date wildcard if the output is written to the disk usingRolloverFileOutputStream.Deprecated.Retrieve the output file name of the request log.Deprecated.Retrieve the file name date format string.intDeprecated.Retrieve the number of days before rotated log files are deleted.Deprecated.booleanisAppend()Deprecated.Retrieve append to log flag.voidsetAppend(boolean append) Deprecated.Set append to log flag.voidsetFilename(String filename) Deprecated.Set the output file name of the request log.voidsetFilenameDateFormat(String logFileDateFormat) Deprecated.Set the log file name date format.voidsetRetainDays(int retainDays) Deprecated.Set the number of days before rotated log files are deleted.voidsetTimeZone(String timeZone) Deprecated.voidDeprecated.Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
Constructor Details
-
RequestLogWriter
public RequestLogWriter()Deprecated. -
RequestLogWriter
Deprecated.
-
-
Method Details
-
setFilename
Deprecated.Set the output file name of the request log. The file name may be in the format expected byRolloverFileOutputStream.- Parameters:
filename- file name of the request log
-
getFileName
Deprecated.Retrieve the output file name of the request log.- Returns:
- file name of the request log
-
getDatedFilename
Deprecated.Retrieve the file name of the request log with the expanded date wildcard if the output is written to the disk usingRolloverFileOutputStream.- Returns:
- file name of the request log, or null if not applicable
-
setRetainDays
public void setRetainDays(int retainDays) Deprecated.Set the number of days before rotated log files are deleted.- Parameters:
retainDays- number of days to keep a log file
-
getRetainDays
Deprecated.Retrieve the number of days before rotated log files are deleted.- Returns:
- number of days to keep a log file
-
setAppend
public void setAppend(boolean append) Deprecated.Set append to log flag.- Parameters:
append- true - request log file will be appended after restart, false - request log file will be overwritten after restart
-
isAppend
Deprecated.Retrieve append to log flag.- Returns:
- value of the flag
-
setFilenameDateFormat
Deprecated.Set the log file name date format.- Parameters:
logFileDateFormat- format string that is passed toRolloverFileOutputStream- See Also:
-
getFilenameDateFormat
Deprecated.Retrieve the file name date format string.- Returns:
- the log File Date Format
-
write
Deprecated.- Specified by:
writein interfaceRequestLog.Writer- Throws:
IOException
-
setTimeZone
Deprecated. -
getTimeZone
Deprecated.
-