Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Feb 19, 2017
1 parent 62c75ad commit 896753f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ end

</p></details>

<details><summary><strong>Timings & Durations</strong></summary><p>
<details><summary><strong>Timings & Performance Tracking</strong></summary><p>

Sometimes you need a quick way to add timings to log statements:

Expand Down Expand Up @@ -188,7 +188,8 @@ logger.info(message: "Task complete", time_ms: time_ms)
# Payment rejected @metadata {"level": "warn", "event": {"payment_rejected": {"customer_id": "abcd1234", "amount": 100, "reason": "Card expired"}}, "context": {...}}
```

* The hash can *only* have a `:message` and "event type" key, where `:payment_rejected` is the event type in the above example.
* The hash can *only* have 2 keys: `:message` and "event type" key; `:payment_rejected` in this example.
* Timber will keyspace your event data by the event type key passed.

2. Log a Struct (recommended)

Expand Down

0 comments on commit 896753f

Please sign in to comment.