package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Oct 28, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package logging provides a shared logger constructor for all Mokka binaries.
NewLogger returns a zap.Logger writing to stdout and installs it as the
process-wide global logger (zap.L() / zap.S()).
Config carries the two knobs that shape log output.
Format is the log output encoding.
const (
FormatJSON Format = "json"
FormatPlain Format = "plain"
)
Supported log formats.
ParseFormat maps a CLI/env string to a Format, defaulting to FormatJSON on empty input.
Level is the log verbosity.
const (
LevelDebug Level = "debug"
LevelInfo Level = "info"
LevelWarn Level = "warn"
LevelError Level = "error"
)
Supported log levels.
ParseLevel maps a CLI/env string to a Level, defaulting to LevelInfo on empty input.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.