private long rotateSize;
private SizeRotatingFileHandler value;
public synchronized void start(final StartContext context) throws StartException {
final SizeRotatingFileHandler handler = new SizeRotatingFileHandler();
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.setMaxBackupIndex(maxBackupIndex);
handler.setRotateSize(rotateSize);
}