コード例 #1
0
  /** 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();
  }
コード例 #2
0
  /** Sets the formatted path. */
  public void setPathFormat(String pathFormat) throws ConfigException {
    super.setPathFormat(pathFormat);

    _logWriter.setPathFormat(pathFormat);
  }
コード例 #3
0
  /** Sets the log path */
  public void setPath(Path path) {
    super.setPath(path);

    _logWriter.setPath(path);
  }