Sha256: 1da35c189f4231773d0300180ff8d22d8458ba25ed5afbd18df49254a2306bfa

Contents?: true

Size: 309 Bytes

Versions: 9

Compression:

Stored size: 309 Bytes

Contents

require 'logster/scheduler'

module Logster
  class DeferLogger < ::Logster::Logger
    private

    def report_to_store(severity, progname, message, opts = {})
      opts[:backtrace] ||= caller
      Logster::Scheduler.schedule do
        super(severity, progname, message, opts)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logster-2.4.2 lib/logster/defer_logger.rb
logster-2.4.1 lib/logster/defer_logger.rb
logster-2.4.0 lib/logster/defer_logger.rb
logster-2.3.3 lib/logster/defer_logger.rb
logster-2.3.2 lib/logster/defer_logger.rb
logster-2.3.1 lib/logster/defer_logger.rb
logster-2.3.0 lib/logster/defer_logger.rb
logster-2.2.0 lib/logster/defer_logger.rb
logster-2.1.1 lib/logster/defer_logger.rb