Sha256: cc13b2e9b358ad7f5b567385f68d9c9495ab9b8712572729cf18d8bc5655c68f
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
module Timber module Frameworks module Rails class Railtie < ::Rails::Railtie config.timber = Config.instance config.before_initialize do Bootstrap.bootstrap!(config.app_middleware, ::Rails::Rack::Logger) end end def self.base_logger(logdev) defined?(::ActiveSupport::Logger) ? ::ActiveSupport::Logger.new(logdev) : ::Logger.new(logdev) end def self.logger(logdev) defined?(::ActiveSupport::TaggedLogging) ? ::ActiveSupport::TaggedLogging.new(base_logger(logdev)) : base_logger(logdev) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | lib/timber/frameworks/rails.rb |