You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
378 B
21 lines
378 B
4 years ago
|
package log
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestHelper(t *testing.T) {
|
||
|
log := NewHelper("test", DefaultLogger)
|
||
|
log.Debug("test debug")
|
||
|
log.Debugf("test %s", "debug")
|
||
|
log.Debugw("log", "test debug")
|
||
|
}
|
||
|
|
||
|
func TestHelperLevel(t *testing.T) {
|
||
|
log := NewHelper("test", DefaultLogger)
|
||
|
log.Debug("test debug")
|
||
|
log.Info("test info")
|
||
|
log.Warn("test warn")
|
||
|
log.Error("test error")
|
||
|
}
|