repositorypackage
0.0.0-20220128052735-680ed4f96095
Repository: https://github.com/sigmonsays/go-logging.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
leveled logging libary in go
documentation - http://godoc.org/github.com/sigmonsays/go-logging
quickstart
in log.go add the following
package whatever
import (
gologging "github.com/sigmonsays/go-logging.git"
)
var log gologging.Logger
func init() {
log = gologging.Register("whatever", func(newlog gologging.Logger) { log = newlog })
}
to change the log level of all loggers
gologging.SetLogLevel("ERROR")