lib/berkeley_library/logging/railtie.rb in berkeley_library-logging-0.2.6.2 vs lib/berkeley_library/logging/railtie.rb in berkeley_library-logging-0.2.7

- old
+ new

@@ -6,10 +6,11 @@ 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) + logger = Configurator.configure(app.config) + BerkeleyLibrary::Logging.logger = logger end end end end