package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: May 24, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Level controls which messages are emitted.
const (
LevelSilent Level = iota
LevelError
LevelInfo
LevelDebug
)
ParseLevel converts a string to a Level. Returns LevelInfo for unknown values.
Logger is a minimal structured logger that writes to stderr.
Zero-dependency, safe for concurrent use.
New creates a logger at the given level, writing to stderr.
Nop returns a silent logger that discards all output.
Debug logs at debug level.
Error logs at error level.
Level returns the current log level.
WithOutput returns a new logger writing to a different writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.