lib/uu/log_context.rb in uu-0.2.0 vs lib/uu/log_context.rb in uu-0.2.1

- old
+ new

@@ -8,9 +8,13 @@ def context @context ||= {} end + def append_context(context_) + self.context = context.merge(context_) + end + def with(context_) original_context = context self.context = context.merge(context_) yield ensure