
The highest tagged major version is
v2.
package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 28, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 2
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
AddFlags adds all the flags from the command line
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.