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 896753f commit 6049cca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 & Performance Tracking</strong></summary><p>
<details><summary><strong>Timings & Durations</strong></summary><p>

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

Expand All @@ -169,6 +169,8 @@ start = Time.now
# ...my code to time...
time_ms = (Time.now - start) * 1000
logger.info(message: "Task complete", time_ms: time_ms)

# My log message @metadata {"level": "info", "time_ms": 54.2132, "context": {...}}
```

* The `:time_ms` attribute is supported by Timber. If present, we will display it in the interface, etc.
Expand Down

0 comments on commit 6049cca

Please sign in to comment.