logging

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL