Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Global ¶ added in v0.3.0
func Global() *zap.SugaredLogger
Global returns the global sugared logger, or a no-op if Init has not been called.
func Init ¶
func Init(verbose, jsonFmt bool) *zap.SugaredLogger
Init initialises the global zap logger.
- verbose: enable debug-level output
- jsonFmt: output newline-delimited JSON instead of human-readable text
func NewQuiet ¶ added in v0.3.0
func NewQuiet() *zap.SugaredLogger
NewQuiet returns a no-op logger that discards all output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.