From b662f088b9b76644b34df7eecd4053100a7c0c01 Mon Sep 17 00:00:00 2001 From: Harish Kukreja Date: Sun, 11 Jun 2023 11:20:21 -0400 Subject: [PATCH] docs: context.Timestamp uses zerolog.TimeFieldFormat (#554) --- context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index f398e31..39397d9 100644 --- a/context.go +++ b/context.go @@ -329,8 +329,9 @@ func (ts timestampHook) Run(e *Event, level Level, msg string) { var th = timestampHook{} -// Timestamp adds the current local time as UNIX timestamp to the logger context with the "time" key. +// Timestamp adds the current local time to the logger context with the "time" key, formatted using zerolog.TimeFieldFormat. // To customize the key name, change zerolog.TimestampFieldName. +// To customize the time format, change zerolog.TimeFieldFormat. // // NOTE: It won't dedupe the "time" key if the *Context has one already. func (c Context) Timestamp() Context {