()
| 30 | ) |
| 31 | |
| 32 | func logPrint() { |
| 33 | Debug("debug") |
| 34 | Info("info") |
| 35 | Warn("warn") |
| 36 | Error("error") |
| 37 | Fatal("fatal") |
| 38 | Trace("trace") |
| 39 | |
| 40 | testValue := 1 |
| 41 | Debugf("debug %v", testValue) |
| 42 | Infof("info %v", testValue) |
| 43 | Warnf("warn %v", testValue) |
| 44 | Errorf("error %v", testValue) |
| 45 | Fatalf("fatal %v", testValue) |
| 46 | Tracef("trace %v", testValue) |
| 47 | } |
| 48 | |
| 49 | func TestLog(t *testing.T) { |
| 50 | defer func() { |