Sha256: d8d05c33b93ad174c45c41823302f33a0f5347f0f5949ded2fe42ee87186d2ce

Contents?: true

Size: 312 Bytes

Versions: 11

Compression:

Stored size: 312 Bytes

Contents

module Logstop
  class Railtie < Rails::Railtie
    console do
      # make broadcaster inherit formatter
      if Rails.logger && Rails.logger.formatter.is_a?(Logstop::Formatter)
        # yes, these are the same, but it works
        Rails.logger.formatter = Rails.logger.formatter
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
logstop-0.4.0 lib/logstop/railtie.rb
logstop-0.3.1 lib/logstop/railtie.rb
logstop-0.3.0 lib/logstop/railtie.rb
logstop-0.2.8 lib/logstop/railtie.rb
logstop-0.2.7 lib/logstop/railtie.rb
logstop-0.2.6 lib/logstop/railtie.rb
logstop-0.2.5 lib/logstop/railtie.rb
logstop-0.2.4 lib/logstop/railtie.rb
logstop-0.2.3 lib/logstop/railtie.rb
logstop-0.2.2 lib/logstop/railtie.rb
logstop-0.2.1 lib/logstop/railtie.rb