Sha256: 12ce4f4fe488086e19277f2b0bf6f3a6d1481c026fef6c64756d90285140cac4

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

require 'logger'

module Filum
  class Logger < ::Logger

    def initialize(*args)
      super
      self.formatter = Filum::LogFormatter.new
    end

    def context_id=(context_id)
      Thread.current[:context_id] = context_id
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
filum-1.0.3 lib/filum/logger.rb
filum-1.0.2 lib/filum/logger.rb
filum-1.0.1 lib/filum/logger.rb