This commit is contained in:
2024-08-27 15:46:23 +08:00
commit 715eda7c67
70 changed files with 20484 additions and 0 deletions

36
logxxx/logext_test.go Normal file
View File

@@ -0,0 +1,36 @@
package logxxx
import (
"testing"
)
func TestLog(t *testing.T) {
SetOutputLevel(Ldebug)
Debugf("Debug: foo\n")
Debug("Debug: foo")
Infof("Info: foo\n")
Info("Info: foo")
Warnf("Warn: foo\n")
Warn("Warn: foo")
Errorf("Error: foo\n")
Error("Error: foo")
SetOutputLevel(Linfo)
Debugf("Debug: foo\n")
Debug("Debug: foo")
Infof("Info: foo\n")
Info("Info: foo")
Warnf("Warn: foo\n")
Warn("Warn: foo")
Errorf("Error: foo\n")
Error("Error: foo")
}