Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ZerologBuilder ¶
type ZerologBuilder interface { log.Builder // SetWriter set where output should be printed SetWriter(writer io.Writer) ZerologBuilder // AddStaticFields will always add provided fields to every log entry AddStaticFields(fields map[string]interface{}) ZerologBuilder // ExcludeTime configures zerolog to exclude any time field ExcludeTime() ZerologBuilder // SetCustomTimeFormatter sets the time format field, have no effect if ExcludeTime is called SetCustomTimeFormatter(format string) ZerologBuilder // IncludeCaller adds caller:line to log entry IncludeCaller() ZerologBuilder }
ZerologBuilder is helper builder to configure zerolog instance
Click to show internal directories.
Click to hide internal directories.