Sha256: ad12a69955f8b64b920dedb3dba5dac4fcb154c149e720dbafb89259df16bde8

Contents?: true

Size: 538 Bytes

Versions: 11

Compression:

Stored size: 538 Bytes

Contents

module RooOnRails
  module Railties
    class Logging < Rails::Railtie
      initializer 'roo_on_rails.logging.before', before: :initialize_logger do
        require 'roo_on_rails/logger'
        Rails.logger = config.logger = RooOnRails::Logger.new
        Rails.logger.debug 'initializer roo_on_rails.logging.before'
      end

      initializer 'roo_on_rails.logging.after', after: :initialize_logger do
        Rails.logger.set_log_level
        Rails.logger.debug 'initializer roo_on_rails.logging.after'
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
roo_on_rails-1.17.0 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.16.2 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.16.1 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.16.0 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.15.0 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.14.0 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.13.1 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.13.0 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.12.0 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.11.1 lib/roo_on_rails/railties/logging.rb
roo_on_rails-1.11.0 lib/roo_on_rails/railties/logging.rb