def flush_period=( period )
      @flush_period =
        case period
        when Integer, Float, nil; period
        when String
          num = _parse_hours_minutes_seconds(period) || _parse_numeric(period)
          raise ArgumentError.new("unrecognized flush period: #{period.inspect}") if num.nil?
          num
        else
          raise ArgumentError.new("unrecognized flush period: #{period.inspect}")
        end

      if !@flush_period.nil? && @flush_period <= 0
        raise ArgumentError,
          "flush_period must be greater than zero: #{period.inspect}"
      end

      _setup_async_flusher
    end
def flush_period=( period )
      @flush_period =
        case period
        when Integer, Float, nil; period
        when String
          num = _parse_hours_minutes_seconds(period) || _parse_numeric(period)
          raise ArgumentError.new("unrecognized flush period: #{period.inspect}") if num.nil?
          num
        else
          raise ArgumentError.new("unrecognized flush period: #{period.inspect}")
        end

      if !@flush_period.nil? && @flush_period <= 0
        raise ArgumentError,
          "flush_period must be greater than zero: #{period.inspect}"
      end

      _setup_async_flusher
    end
Configure periodic flushing of the message buffer. Periodic flushing is
 used to flush the contents of the logging buffer at some regular
 interval. Periodic flushing is disabled by default.

 When enabling periodic flushing the flush period should be set using one
 of the following formats: "HH:MM:SS" or seconds as an numeric or string.

   "01:00:00"  : every hour
   "00:05:00"  : every 5 minutes
   "00:00:30"  : every 30 seconds
   60          : every 60 seconds (1 minute)
   "120"       : every 120 seconds (2 minutes)

 For the periodic flusher to work properly, the auto-flushing threshold
 will be set to the default value of 500. The auto-flushing threshold can
 be changed, but it must be greater than 1.

 To disable the periodic flusher simply set the flush period to +nil+.
 The auto-flushing threshold will not be changed; it must be disabled
 manually if so desired.