| Modifier and Type | Field and Description |
|---|---|
| private FileAppender | |
| private final DateTimeFormatter | |
| private boolean | |
| private File | |
| private File | |
| private final File | |
| private final DateTimeFormatter | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | RotatingFileAppender(File
The directory where access log files will be written to. directory, String A properly escaped filePattern)DateTimeFormatter pattern for the access log files.Create a |
| public | RotatingFileAppender(File
The directory where access log files will be written to. directory, String A file name where log entries will be written to. fileName, String A properly escaped archivePattern)DateTimeFormatter pattern for the access log archive files.Create a |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(String accessLogEntry)
Implements org. Append the specified access log entry. |
| public void | close()
Implements org. Close any underlying resource owned by this appender. |
| private static String |
| appender | back to summary |
|---|---|
| private FileAppender appender | |
| archiveFormat | back to summary |
|---|---|
| private final DateTimeFormatter archiveFormat | |
| closed | back to summary |
|---|---|
| private boolean closed | |
| currentArchive | back to summary |
|---|---|
| private File currentArchive | |
| currentFile | back to summary |
|---|---|
| private File currentFile | |
| directory | back to summary |
|---|---|
| private final File directory | |
| fileFormat | back to summary |
|---|---|
| private final DateTimeFormatter fileFormat | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| RotatingFileAppender | back to summary |
|---|---|
| public RotatingFileAppender(File directory, String filePattern) throws IOException Create a
For example when the specified pattern is
| |
| RotatingFileAppender | back to summary |
|---|---|
| public RotatingFileAppender(File directory, String fileName, String archivePattern) throws IOException Create a
When using this constructor the current log file (the one being written to) will always be the one
identified by the
For example when
| |
| RotatingFileAppender | back to summary |
|---|---|
| private RotatingFileAppender(String filePattern, String archivePattern, File directory) throws IOException | |
| append | back to summary |
|---|---|
| public void append(String accessLogEntry) throws IOException Implements org. Doc from org. Append the specified access log entry.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Close any underlying resource owned by this appender.
| |
| escape | back to summary |
|---|---|
| private static String escape(String fileName) | |