glog provides a simple logger for Go.
go get -u github.com/winterssy/glog
import "github.com/winterssy/glog"
package main
import "github.com/winterssy/glog"
func init() {
glog.ReplaceGlobal(glog.New(os.Stderr, "", glog.LstdFlags, glog.Ldebug))
}
func main() {
glog.Debug("hello world")
// 2020-01-01 00:00:00,000 [DEBUG] hello world
}