Documentation ¶
Overview ¶
Package tracelog provides a logger for debugging and tracing This logger will not print anything, unless TRACE_LEVEL is at least 1
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerFlags ¶
LoggerFlags adds to viper flags
func NewStdrLogger ¶ added in v0.5.1
NewStdrLogger returns a stdr logger
func NewZapLogger ¶ added in v0.4.0
NewZapLogger creates a new zap logger with our setup. It only prints messages below Zap uses semantically named levels for logging (DebugLevel, InfoLevel, WarningLevel, ...). Logr uses arbitrary numeric levels. By default logr's V(0) is zap's InfoLevel and V(1) is zap's DebugLevel (which is numerically -1). Zap does not have named levels that are more verbose than DebugLevel, but it's possible to fake it.
func TraceOutput ¶ added in v0.5.1
func TraceOutput() string
TraceOutput returns the trace-output argument
Types ¶
This section is empty.