public static function setLogFlushTimeLimit($seconds) {
    if (!is_int($seconds)) {
      throw new \InvalidArgumentException(
          'Seconds must be an integer but was ' . self::typeOrClass($seconds));
    }
    self::$flush_time_limit = $seconds;
  }