README.md in l2meter-0.1.0 vs README.md in l2meter-0.1.1
- old
+ new
@@ -204,5 +204,16 @@
config.around :each do |example|
Metrics.silence &example
end
end
```
+
+Note that this code will only silence logger in the current thread. It'll
+still produce ouput if you fire up a new thread. To silcene it completely,
+use `silence!` method, like so:
+
+```ruby
+# spec/spec_helper.rb
+Metrics.silence!
+```
+
+You can unfo the effect of `silence!` by calling `unsilence!`.