Sha256: 5b88981433bd855e77cbe33a3816e4be99547d048658b35e2291eba759df5fa5
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 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| logger = Configurator.configure(app.config) BerkeleyLibrary::Logging.logger = logger end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
berkeley_library-logging-0.2.7 | lib/berkeley_library/logging/railtie.rb |