This commit is contained in:
2023-01-15 00:21:08 +08:00
commit 0fdfb59809
15 changed files with 1374 additions and 0 deletions

21
mylog/log_test.go Normal file
View File

@@ -0,0 +1,21 @@
package mylog
import (
"fmt"
"testing"
"time"
)
func TestLog(t *testing.T) {
Debug("time: ", time.Now())
Info("time: ", time.Now())
Warn("time: ", time.Now())
Error("time: ", time.Now())
fmt.Println()
Debugf("time: %s", time.Now())
Infof("time: %s", time.Now())
Warnf("time: %s", time.Now())
Errorf("time: %s", time.Now())
}