Sha256: 9dce4378d166596e471bd8e7cf2b58a0baba0091bff7c6e96a15e75d8ef76438

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

module Sidekiq
  module Haron
    class Formatter < Sidekiq::Logger::Formatters::Pretty

      def call(severity, time, program_name, message)
        result = "#{context} #{severity.to_s[0]}: #{message}\n"
        if ENV['RAILS_LOG_TO_STDOUT'].present?
          result
        else
          "#{time.utc.iso8601(3)} #{result}"
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-haron-0.1.7 lib/sidekiq/haron/formatter.rb