lib/ougai/logger.rb in ougai-1.4.0 vs lib/ougai/logger.rb in ougai-1.4.1
- old
+ new
@@ -25,9 +25,14 @@
define_method(:level=) do |level|
logger.level = level
super(level)
end
+
+ define_method(:close) do
+ logger.close
+ super()
+ end
end
end
def chain(severity, args, fields, hooks)
hooks.push(@before_log) if @before_log