| Modifier and Type | Field and Description |
|---|---|
| private final AccessControlContext | acc
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private int | |
| private CountingOutputStream | |
| private boolean | |
| private long | |
| private SuffixRotator |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SizeRotatingFileHandler(final File
the file file)Construct a new instance with the given output file. |
| public | SizeRotatingFileHandler(final File
the file file, final boolean true to append, false to overwriteConstruct a new instance with the given output file and append setting. |
| public | SizeRotatingFileHandler(final String
the file name fileName)Construct a new instance with the given output file. |
| public | SizeRotatingFileHandler(final String
the file name fileName, final boolean true to append, false to overwriteConstruct a new instance with the given output file and append setting. |
| public | SizeRotatingFileHandler(final long rotateSize, final int maxBackupIndex)
Construct a new instance with no formatter and no output file. |
| public | SizeRotatingFileHandler(final File
the file file, final long rotateSize, final int maxBackupIndex)Construct a new instance with the given output file. |
| public | SizeRotatingFileHandler(final File
the file file, final boolean true to append, false to overwriteConstruct a new instance with the given output file and append setting. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the suffix ornull if no suffix should be usedReturns the suffix set to be appended to files during rotation. |
| public boolean | Returns: true if file should rotate on boot, otherwise false/Indicates whether or a not the handler should rotate the file before the first log record is written. |
| protected void | preWrite(final ExtLogRecord
the record about to be logged record)Overrides org. Execute any pre-write policy, such as file rotation. |
| public void | setFile(final File
the file file)Overrides org. Set the output file. |
| private void | |
| public void | setMaxBackupIndex(final int
the maximum backup index maxBackupIndex)Set the maximum backup index (the number of log files to keep around). |
| public void | setOutputStream(final OutputStream
the new output stream or outputStream)null for noneOverrides org. Set the output stream to write to. |
| public void | setRotateOnBoot(final boolean
true to rotate on boot, otherwise falseSet to a value of |
| public void | setRotateSize(final long
the number of bytes before the log is rotated rotateSize)Set the rotation size, in bytes. |
| public void |
| acc | back to summary |
|---|---|
| private final AccessControlContext acc
References Deprecated
See corresponding docs for further information. | |
| maxBackupIndex | back to summary |
|---|---|
| private int maxBackupIndex | |
| outputStream | back to summary |
|---|---|
| private CountingOutputStream outputStream Hides org. | |
| rotateOnBoot | back to summary |
|---|---|
| private boolean rotateOnBoot | |
| rotateSize | back to summary |
|---|---|
| private long rotateSize | |
| suffixRotator | back to summary |
|---|---|
| private SuffixRotator suffixRotator | |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler() Construct a new instance with no formatter and no output file. | |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler(final File file) throws FileNotFoundException Construct a new instance with the given output file.
| |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler(final File file, final boolean append) throws FileNotFoundException Construct a new instance with the given output file and append setting.
| |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler(final String fileName) throws FileNotFoundException Construct a new instance with the given output file.
| |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler(final String fileName, final boolean append) throws FileNotFoundException Construct a new instance with the given output file and append setting.
| |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler(final long rotateSize, final int maxBackupIndex) Construct a new instance with no formatter and no output file. | |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler(final File file, final long rotateSize, final int maxBackupIndex) throws FileNotFoundException Construct a new instance with the given output file.
| |
| SizeRotatingFileHandler | back to summary |
|---|---|
| public SizeRotatingFileHandler(final File file, final boolean append, final long rotateSize, final int maxBackupIndex) throws FileNotFoundException Construct a new instance with the given output file and append setting.
| |
| getSuffix | back to summary |
|---|---|
| public String getSuffix() Returns the suffix set to be appended to files during rotation.
| |
| isRotateOnBoot | back to summary |
|---|---|
| public boolean isRotateOnBoot() Indicates whether or a not the handler should rotate the file before the first log record is written.
| |
| preWrite | back to summary |
|---|---|
| protected void preWrite(final ExtLogRecord record) Overrides org. Doc from org. Execute any pre-write policy, such as file rotation. The write lock is held during this method, so make it quick. The default implementation does nothing.
| |
| setFile | back to summary |
|---|---|
| public void setFile(final File file) throws FileNotFoundException Overrides org. Doc from org. Set the output file.
| |
| setFileInternal | back to summary |
|---|---|
| private void setFileInternal(final File file, final boolean doPrivileged) throws FileNotFoundException | |
| setMaxBackupIndex | back to summary |
|---|---|
| public void setMaxBackupIndex(final int maxBackupIndex) Set the maximum backup index (the number of log files to keep around).
| |
| setOutputStream | back to summary |
|---|---|
| public void setOutputStream(final OutputStream outputStream) Overrides org. Doc from org. Set the output stream to write to. The output stream will then belong to this handler; when the handler is closed or a new writer or output stream is set, this output stream will be closed.
| |
| setRotateOnBoot | back to summary |
|---|---|
| public void setRotateOnBoot(final boolean rotateOnBoot) Set to a value of
| |
| setRotateSize | back to summary |
|---|---|
| public void setRotateSize(final long rotateSize) Set the rotation size, in bytes.
| |
| setSuffix | back to summary |
|---|---|
| public void setSuffix(final String suffix) Sets the suffix to be appended to the file name during the file rotation. The suffix does not play a role in determining when the file should be rotated.
The suffix must be a string understood by the
If the suffix ends with Note The
| |