package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Aug 9, 2026
License: MIT
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 log configures the application-wide zap logger.
Format defaults to a colored console encoder when stderr is a TTY and to
JSON otherwise (e.g. in CI). Both can be overridden via flags — see New.
New builds a *zap.Logger from opts. The caller owns the logger and should
defer logger.Sync().
Format selects the log encoder.
const (
FormatAuto Format = "auto"
FormatConsole Format = "console"
FormatJSON Format = "json"
)
Options controls logger construction.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.