grlogs/log_test.go
2020-04-28 17:17:21 +08:00

24 lines
428 B
Go

package grlogs
import (
_ "golib.gaore.com/GaoreGo/grlogs/logs/es"
"testing"
"time"
)
func TestGetLogger(t *testing.T) {
l := Get("nds", 128).SetAdapter(LevelAll, AdapterElasticSearch)
l.Debug("我正在调试")
l.Critical("出错了")
Get("nds").Warning("hadoee %s", time.Now().Format(time.RFC1123))
GetEs("wifi")
for i := 0; i < 10; i++ {
Get("wifi").Error("neoweiwoewe")
}
}
func TestGetEs(t *testing.T) {
}