package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Jun 8, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewLogger creates a new logger based on configuration
type Config struct {
Level string `yaml:"level" validate:"required,oneof=debug info warn error dpanic panic fatal"`
Format string `yaml:"format" validate:"required,oneof=json console"`
OutputPath string `yaml:"output_path" default:"stdout"`
}
Config contains logging settings
Source Files
¶
Click to show internal directories.
Click to hide internal directories.