From 36c85e7f5e9f8d73b25931fdc60714d349225c18 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Tue, 16 May 2017 22:42:57 -0700 Subject: [PATCH] Add output example for sampled messages --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cbdee3d..d6c8c49 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,8 @@ log.Logger = log.With().Str("foo", "bar").Logger() ```go sampled := log.Sample(10) sampled.Info().Msg("will be logged every 10 messages") + +// Output: {"time":1494567715,"sample":10,"message":"will be logged every 10 messages"} ``` ## Global Settings