Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DebugLevel is the debug log level, i.e. the most verbose. DebugLevel = "debug" // InfoLevel is the default log level. InfoLevel = "info" // ErrorLevel is a log level where only errors are logged. ErrorLevel = "error" // FormatJSON is the output type that produces a JSON object per log line. FormatJSON = "json" // FormatText outputs the log as human-readable text. FormatText = "text" )
Variables ¶
View Source
var ( // AllLogLevels is a slice of all available log levels. AllLogLevels = []string{DebugLevel, InfoLevel, ErrorLevel} // AllLogFormats is a slice of all available log formats. AllLogFormats = []string{FormatJSON, FormatText} )
Functions ¶
func MustNewZapLogger ¶ added in v1.35.0
MustNewZapLogger is like NewZapLogger but panics on invalid input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.