haiwai-grlogs/log_test.go

15 lines
236 B
Go
Raw Normal View History

2020-04-01 11:38:28 +08:00
package grlogs
import (
"testing"
"time"
2020-04-01 11:38:28 +08:00
)
func TestGetLogger(t *testing.T) {
2020-04-28 10:37:47 +08:00
l := Get("nds", 128)
l.Debug("我正在调试")
l.Critical("出错了")
Get("nds").Warning("hadoee %s", time.Now().Format(time.RFC1123))
l.Flush()
2020-04-01 11:38:28 +08:00
}