private boolean append;
private String suffix;
private PeriodicRotatingFileHandler value;
public synchronized void start(final StartContext context) throws StartException {
final PeriodicRotatingFileHandler handler = new PeriodicRotatingFileHandler();
value = handler;
if (filter != null) handler.setFilter(filter);
formatterSpec.apply(handler);
if (level != null) handler.setLevel(level);
handler.setAutoFlush(autoflush);
try {
handler.setEncoding(encoding);
} catch (UnsupportedEncodingException e) {
throw new StartException(e);
}
handler.setAppend(append);
try {
handler.setFileName(fileName.getValue());
} catch (FileNotFoundException e) {
throw new StartException(e);
}
handler.setSuffix(suffix);
}