package
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Dec 23, 2024
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
¶
Determines the log level from a provided string
The string is trimmed of whitespaced and converted to uppercase
type Logs struct {
LogLevel string `env:"LOG_LEVEL" envDefault:"INFO"`
Pretty bool `env:"PRETTY_LOGS" envDefault:"false"`
ServiceName string `env:"SERVICE_NAME" envDefault:"_"`
Environment string `env:"ENVIRONMENT" envDefault:"dev"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.