From 6049ccae74016eb310a9ba7f494a65ef7e6909dc Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sun, 19 Feb 2017 10:06:04 -0600 Subject: [PATCH] Update readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5a5875fb..cbea9938 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ end

-
Timings & Performance Tracking

+

Timings & Durations

Sometimes you need a quick way to add timings to log statements: @@ -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.