setSuffix(String).
| Modifier and Type | Class and Description |
|---|---|
| public static enum | PeriodicRotatingFileHandler.
Possible period values. |
| 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 DateTimeFormatter | |
| private Instant | |
| private String | |
| private PeriodicRotatingFileHandler. | |
| private SuffixRotator | |
| private TimeZone |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PeriodicRotatingFileHandler(final String
the file name fileName)Construct a new instance with the given output file. |
| public | PeriodicRotatingFileHandler(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 | PeriodicRotatingFileHandler(final File
the file file, final String the format suffix to use suffix)Construct a new instance with the given output file. |
| public | PeriodicRotatingFileHandler(final File
the file file, final String the format suffix to use suffix, 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 |
|---|---|
| private void | |
| protected final String | |
| pack-priv SuffixRotator | |
| public TimeZone | |
| private static <T extends Comparable | |
| protected void | preWrite(final ExtLogRecord
the record about to be logged record)Overrides org. Execute any pre-write policy, such as file rotation. |
| private void | |
| public void | setFile(final File
the file file)Overrides org. Set the output file. |
| private void | |
| public void | |
| public void | setTimeZone(final TimeZone
the configured time zone timeZone)Set the configured time zone for this handler. |
| acc | back to summary |
|---|---|
| private final AccessControlContext acc
References Deprecated
See corresponding docs for further information. | |
| format | back to summary |
|---|---|
| private DateTimeFormatter format | |
| nextRollover | back to summary |
|---|---|
| private Instant nextRollover | |
| nextSuffix | back to summary |
|---|---|
| private String nextSuffix | |
| period | back to summary |
|---|---|
| private PeriodicRotatingFileHandler. | |
| suffixRotator | back to summary |
|---|---|
| private SuffixRotator suffixRotator | |
| timeZone | back to summary |
|---|---|
| private TimeZone timeZone | |
| PeriodicRotatingFileHandler | back to summary |
|---|---|
| public PeriodicRotatingFileHandler() Construct a new instance with no formatter and no output file. | |
| PeriodicRotatingFileHandler | back to summary |
|---|---|
| public PeriodicRotatingFileHandler(final String fileName) throws FileNotFoundException Construct a new instance with the given output file.
| |
| PeriodicRotatingFileHandler | back to summary |
|---|---|
| public PeriodicRotatingFileHandler(final String fileName, final boolean append) throws FileNotFoundException Construct a new instance with the given output file and append setting.
| |
| PeriodicRotatingFileHandler | back to summary |
|---|---|
| public PeriodicRotatingFileHandler(final File file, final String suffix) throws FileNotFoundException Construct a new instance with the given output file.
| |
| PeriodicRotatingFileHandler | back to summary |
|---|---|
| public PeriodicRotatingFileHandler(final File file, final String suffix, final boolean append) throws FileNotFoundException Construct a new instance with the given output file and append setting.
| |
| calcNextRollover | back to summary |
|---|---|
| private void calcNextRollover(final Instant fromTime) | |
| getNextSuffix | back to summary |
|---|---|
| protected final String getNextSuffix() Returns the suffix to be used.
| |
| getSuffixRotator | back to summary |
|---|---|
| pack-priv SuffixRotator getSuffixRotator() Returns the file rotator for this handler.
| |
| getTimeZone | back to summary |
|---|---|
| public TimeZone getTimeZone() Get the configured time zone for this handler.
| |
| min | back to summary |
|---|---|
| private static <T extends Comparable | |
| 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. This implementation checks to see if the scheduled rollover time has yet occurred.
| |
| rollOver | back to summary |
|---|---|
| private void rollOver() | |
| 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) throws FileNotFoundException | |
| setSuffix | back to summary |
|---|---|
| public void setSuffix(String suffix) throws IllegalArgumentException Set the suffix string. The string is in a format which can be understood by
If the suffix ends with
| |
| setTimeZone | back to summary |
|---|---|
| public void setTimeZone(final TimeZone timeZone) Set the configured time zone for this handler.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| public static final PeriodicRotatingFileHandler. | |
| public static final PeriodicRotatingFileHandler. | |
| public static final PeriodicRotatingFileHandler. | |
| public static final PeriodicRotatingFileHandler. | |
| public static final PeriodicRotatingFileHandler. | |
| public static final PeriodicRotatingFileHandler. | |
| public static final PeriodicRotatingFileHandler. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PeriodicRotatingFileHandler. | |
| public static PeriodicRotatingFileHandler. |
| DAY | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| HALF_DAY | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| HOUR | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| MINUTE | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| MONTH | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| NEVER | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| WEEK | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| YEAR | back to summary |
|---|---|
| public static final PeriodicRotatingFileHandler. | |
| Period | back to summary |
|---|---|
| private Period() | |
| valueOf | back to summary |
|---|---|
| public static PeriodicRotatingFileHandler. | |
| values | back to summary |
|---|---|
| public static PeriodicRotatingFileHandler. | |