github.com/hedzr/evendeep@v0.4.8/dbglog/log_init.go (about) 1 package dbglog 2 3 import ( 4 stdlog "log" 5 ) 6 7 func init() { //nolint:gochecknoinits //no 8 stdlog.SetFlags(stdlog.LstdFlags | stdlog.Lshortfile | stdlog.Lmicroseconds) 9 10 // enable debug level for hedzr/log and log. 11 // - make log.Debugf(...) printing the text onto console; 12 // - make log.VDebugf(...) printing the text onto console 13 // if build tag 'verbose' present; 14 // log2.SetLevel(log2.DebugLevel) 15 }