Discover Packages
github.com/netsak/go-libstd
logger
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Nov 3, 2024
License: BSD-3-Clause
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
Documentation
¶
MustNewFromEnv creates a new logger configured with environment variables.
Panics when an error occurs.
New create a new logger based on the config and sets it as default.
type Config struct {
Level string `env:"LOG_LEVEL"`
Format string `env:"LOG_FORMAT"`
}
Config for the logger
Source Files
¶
Click to show internal directories.
Click to hide internal directories.