lib/ougai/logger.rb in ougai-1.3.0 vs lib/ougai/logger.rb in ougai-1.4.0

- old
+ new

@@ -20,9 +20,14 @@ mdl.send(:define_method, method_name) do |*args| logger.send(method_name, *args) super(*args) end end + + define_method(:level=) do |level| + logger.level = level + super(level) + end end end def chain(severity, args, fields, hooks) hooks.push(@before_log) if @before_log