Sha256: f865ba3e305f754a94e31a5f22560a93e0f0517df94f0560231f3d16516c988f

Contents?: true

Size: 520 Bytes

Versions: 9

Compression:

Stored size: 520 Bytes

Contents

require 'lograge'
require 'lograge/railtie' # NOTE: registers Lograge::Railtie by side effect
require 'berkeley_library/logging/configurator'

module BerkeleyLibrary
  module Logging
    class Railtie < Rails::Railtie
      # Don't use the Railtie's own `config` because configure() needs
      # Rails::Application::Configuration#default_log_file
      initializer('logging.configure_berkeley_library_logging', before: :initialize_logger) do |app|
        Configurator.configure(app.config)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
berkeley_library-logging-0.2.6.2 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.6.1 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.6 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.5 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.4 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.3 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.2 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.1 lib/berkeley_library/logging/railtie.rb
berkeley_library-logging-0.2.0 lib/berkeley_library/logging/railtie.rb