Class: BerkeleyLibrary::Logging::Configurator
- Inherits:
-
Object
- Object
- BerkeleyLibrary::Logging::Configurator
- Defined in:
- lib/berkeley_library/logging/configurator.rb
Class Method Summary collapse
-
.configure(config) ⇒ BerkeleyLibrary::Logging::Logger
Applies the log configuration to the specified Rails config.
Class Method Details
.configure(config) ⇒ BerkeleyLibrary::Logging::Logger
Applies the log configuration to the specified Rails config.
14 15 16 17 18 19 20 21 22 |
# File 'lib/berkeley_library/logging/configurator.rb', line 14 def configure(config) configure_lograge(config) Loggers.new_default_logger(config).tap do |logger| logger.info("Custom logger initialized for environment #{Logging.env.inspect}") configure_webpacker(logger) config.logger = logger end end |