lib/ougai/logger.rb in ougai-1.5.0 vs lib/ougai/logger.rb in ougai-1.5.2
- old
+ new
@@ -19,10 +19,10 @@
# Broadcasts the same logs to the another logger
# @param logger [Logger] The logger receiving broadcast logs.
def self.broadcast(logger)
Module.new do |mdl|
- ::Logger::Severity.constants.each do |severity|
+ Logger::Severity.constants.each do |severity|
method_name = severity.downcase.to_sym
mdl.send(:define_method, method_name) do |*args|
logger.send(method_name, *args)
super(*args)