package org.jboss.logmanager.handlers;
A file handler which rotates the log at a preset time interval. The interval is determined by the content of the
suffix string which is passed in to
setSuffix(java.lang.String).
Construct a new instance with no formatter and no output file.
Construct a new instance with the given output file.
Construct a new instance with the given output file and append setting.
- Parameters:
fileName the file nameappend true to append, false to overwrite- Throws:
java.io.FileNotFoundException if the file could not be found on open
Construct a new instance with the given output file.
Construct a new instance with the given output file and append setting.
- Parameters:
file the filesuffix the format suffix to useappend true to append, false to overwrite- Throws:
java.io.FileNotFoundException if the file could not be found on open
This implementation checks to see if the scheduled rollover time has yet occurred.
final long recordMillis = record.getMillis();
Set the suffix string. The string is in a format which can be understood by
java.text.SimpleDateFormat.
The period of the rotation is automatically calculated based on the suffix.
final int len = suffix.length();
for (int i = 0; i < len; i ++) { case '\'': while (suffix.charAt(++i) != '\''); break;
private static <T extends Comparable<? super T>> T min(T a, T b) { Possible period values. Keep in strictly ascending order of magnitude.