From 61d1749124672b4bcb7b07065304945d08597176 Mon Sep 17 00:00:00 2001 From: Charles Chan Date: Sat, 10 Aug 2019 22:03:49 -0700 Subject: [PATCH] Fix description in README for Global Settings (#176) --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f7ff10f..e493dd1 100644 --- a/README.md +++ b/README.md @@ -480,10 +480,9 @@ Some settings can be changed and will by applied to all loggers: * `zerolog.MessageFieldName`: Can be set to customize message field name. * `zerolog.ErrorFieldName`: Can be set to customize `Err` field name. * `zerolog.TimeFieldFormat`: Can be set to customize `Time` field value formatting. If set with `zerolog.TimeFormatUnix` or `zerolog.TimeFormatUnixMs`, times are formated as UNIX timestamp. -* DurationFieldUnit defines the unit for time.Duration type fields added using the Dur method. -* `DurationFieldUnit`: Sets the unit of the fields added by `Dur` (default: `time.Millisecond`). -* `DurationFieldInteger`: If set to true, `Dur` fields are formatted as integers instead of floats. -* `ErrorHandler`: Called whenever zerolog fails to write an event on its output. If not set, an error is printed on the stderr. This handler must be thread safe and non-blocking. +* `zerolog.DurationFieldUnit`: Can be set to customize the unit for time.Duration type fields added by `Dur` (default: `time.Millisecond`). +* `zerolog.DurationFieldInteger`: If set to `true`, `Dur` fields are formatted as integers instead of floats (default: `false`). +* `zerolog.ErrorHandler`: Called whenever zerolog fails to write an event on its output. If not set, an error is printed on the stderr. This handler must be thread safe and non-blocking. ## Field Types