/** Closes the log, flushing the results. */
  @Override
  public void destroy() throws IOException {
    super.destroy();

    _isActive = false;

    Alarm alarm = _alarm;
    _alarm = null;

    if (alarm != null) alarm.dequeue();

    flush();

    _logWriter.close();
  }
  /** Sets the formatted path. */
  public void setPathFormat(String pathFormat) throws ConfigException {
    super.setPathFormat(pathFormat);

    _logWriter.setPathFormat(pathFormat);
  }
  /** Sets the log path */
  public void setPath(Path path) {
    super.setPath(path);

    _logWriter.setPath(path);
  }