public synchronized boolean isLoggable(LogRecord record) {
    // return true if the record should be logged;
    // false otherwise.
    if (this._level == Level.ALL) {
      return true;
    } else if (this._level == Level.OFF) {
      return false;
    } else if (record.getLevel().intValue() >= this._level.intValue()) {
      return true;
    } else {
      return false;
    }
  }