Documentation
¶
Overview ¶
Package zlog contains some very simple go-logr / zerologr helper functions. This sets the default timestamp format to time.RFC3339 with ms precision.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaybeConsoleWriter ¶ added in v0.22.1
MaybeConsoleWriter returns a zerolog.ConsoleWriter if w is a terminal, and w unchanged otherwise.
func NewLevelWriter ¶
NewLevelWriter returns a new zerolog.LevelWriter that discards messages under the given threshold, and writes to all the specified writers.
func NewZerolog ¶ added in v0.22.0
NewZerolog returns a new zerolog.Logger writing to w.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.