def flush_buffer
      # note we must discard cancelled timer or else we never create a new timer and stay cancelled.
      if @timer
        @timer.cancel
        @timer = nil
      end

      to_send = nil
      @mutex.synchronize do
        unless @buffer.empty?
          to_send = @buffer
          @buffer = ''
        end
      end

      if to_send
        internal_send_audit(:kind => :output, :text => to_send, :category => EventCategories::NONE)
      end
    end
def flush_buffer
      # note we must discard cancelled timer or else we never create a new timer and stay cancelled.
      if @timer
        @timer.cancel
        @timer = nil
      end

      to_send = nil
      @mutex.synchronize do
        unless @buffer.empty?
          to_send = @buffer
          @buffer = ''
        end
      end

      if to_send
        internal_send_audit(:kind => :output, :text => to_send, :category => EventCategories::NONE)
      end
    end
Send any buffered output to auditor

 === Return
 Always return true