init
This commit is contained in:
36
logxxx/logext_test.go
Normal file
36
logxxx/logext_test.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user