package
module
Version:
v2.0.1
Opens a new window with list of versions in this module.
Published: Mar 12, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
log
Logging wrapper library based on zerolog.
Installing
go get github.com/alexferl/x/log
Documentation
¶
View Source
var (
DefaultConfig = &Config{
LogLevel: "info",
LogOutput: "stdout",
LogWriter: "console",
}
)
New initializes the logger based on the passed Config,
defaults to DefaultConfig if `config` is nil
Config holds all log configuration
BindFlags adds all the flags from the command line
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.