package
Version:
v0.0.0-...-af9c1cf
Opens a new window with list of versions in this module.
Published: Jun 19, 2023
License: MIT
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
¶
View Source
const (
JSONFormat = "json"
TextFormat = "text"
)
The log format can either be text or JSON.
type Config struct {
Level string `json:"level" default:"info" env:"LOG_LEVEL"`
Format string `json:"format" default:"json" env:"LOG_FORMAT"`
}
Config stores the config for the logger.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.