Sha256: 08cd0b65001d875d239fe121859d5260de1c77eaed6aa5246fdeefe311b9878e

Contents?: true

Size: 425 Bytes

Versions: 13

Compression:

Stored size: 425 Bytes

Contents

require 'logger'

ENV['RAILS_LOG_TO_STDOUT'] = '1'

module Lamby
  module Logger

    def initialize(*args)
      args[0] = STDOUT
      super(*args)
    end

  end
end

Logger.prepend Lamby::Logger

# TODO: Railtie initializer
# Rails.application.config.logger = ActiveSupport::TaggedLogging.new(
#   ActiveSupport::Logger.new(STDOUT).tap { |logger|
#     logger.formatter = Rails.application.config.log_formatter
#   }
# )

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
lamby-no-rails-1.0.3 lib/lamby/logger.rb
lamby-1.0.2 lib/lamby/logger.rb
lamby-1.0.1 lib/lamby/logger.rb
lamby-1.0.0 lib/lamby/logger.rb
lamby-0.6.0 lib/lamby/logger.rb
lamby-0.5.1 lib/lamby/logger.rb
lamby-0.5.0 lib/lamby/logger.rb
lamby-0.4.1 lib/lamby/logger.rb
lamby-0.4.0 lib/lamby/logger.rb
lamby-0.3.2 lib/lamby/logger.rb
lamby-0.3.1 lib/lamby/logger.rb
lamby-0.3.0 lib/lamby/logger.rb
lamby-0.2.0 lib/lamby/logger.rb