README.md in l2meter-0.13.0 vs README.md in l2meter-0.14.0
- old
+ new
@@ -34,12 +34,12 @@
do_some_work #
logger.log :work_done # => work-done
end # => doing-work at=finish elapsed=1.2345
```
-In case of the exception inside the block, all relevant information is logged
-and then exception is re-raised.
+In case of an exception inside the block, all relevant information is logged
+and then the exception is re-raised.
```ruby
logger.log :doing_work do # => doing-work at=start
raise ArgumentError, \ #
"something is wrong" #
@@ -84,11 +84,11 @@
end
end
end
```
-It's possbile to create a dedicated copy of the logger with some specific
+It's possible to create a dedicated copy of the logger with some specific
context attached to it.
```ruby
worker_logger = logger.context(component: :worker, worker_id: 123)
@@ -152,11 +152,11 @@
Here's the full list of available settings.
### Global context
-Global context works similary to context method, but globally:
+Global context works similarly to context method, but globally:
```ruby
config.context = { app_name: "my-app-name" }
# ...
@@ -235,10 +235,10 @@
Note that returning nil value will make l2meter omit the field completely.
## Silence
-There's a way to temporary silence the log emitter. This might be userful for
+There's a way to temporary silence the log emitter. This might be useful for
tests for example.
```ruby
logger.silence do
# logger is completely silenced