Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnexpectedLevel = errors.New("unexpected level") ErrUnexpectedFormat = errors.New("unexpected format") )
View Source
var Logger *zerolog.Logger
Functions ¶
func SetGlobalFormat ¶
func SetGlobalFormat(format Format)
func SetGlobalLevel ¶
func SetGlobalLevel(level Level)
Types ¶
type Format ¶
type Format = string
const ( FormatJSON Format = "json" FormatConsole Format = "console" FormatDefault = FormatConsole )
func ParseFormat ¶
Click to show internal directories.
Click to hide internal directories.