github.com/hedzr/evendeep@v0.4.8/dbglog/log_test.go (about) 1 //go:build delve || verbose 2 // +build delve verbose 3 4 package dbglog 5 6 import ( 7 "github.com/hedzr/log" 8 "testing" 9 ) 10 11 func TestFLog(t *testing.T) { 12 // config := log.NewLoggerConfigWith(true, "logrus", "trace") 13 // logger := logrus.NewWithConfig(config) 14 log.Printf("hello") 15 log.Infof("hello info") 16 log.Warnf("hello warn") 17 log.Errorf("hello error") 18 log.Debugf("hello debug") 19 log.Tracef("hello trace") 20 21 Log("but again") 22 }