lib/dry/system/plugins/logging.rb in dry-system-0.19.1 vs lib/dry/system/plugins/logging.rb in dry-system-0.19.2
- old
+ new
@@ -11,13 +11,10 @@
system.before(:configure) do
setting :logger, reader: true
setting :log_dir, "log"
- setting :log_levels,
- development: Logger::DEBUG,
- test: Logger::DEBUG,
- production: Logger::ERROR
+ setting :log_levels, {development: Logger::DEBUG, test: Logger::DEBUG, production: Logger::ERROR}
setting :logger_class, ::Logger, reader: true
end
system.after(:configure, &:register_logger)