2021-12-14 10:53:50 +08:00
|
|
|
package logger
|
|
|
|
|
2021-12-29 14:33:48 +08:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
"time"
|
|
|
|
)
|
2021-12-14 10:53:50 +08:00
|
|
|
|
|
|
|
func TestLogger(t *testing.T) {
|
|
|
|
InitLogger(LogConfig{Mode: Dev, LokiEnable: false, FileEnable: true})
|
|
|
|
Say.Debug("芜湖")
|
|
|
|
}
|
2021-12-29 14:33:48 +08:00
|
|
|
|
|
|
|
func TestLogger1(t *testing.T) {
|
|
|
|
Say.Info("我是测试消息")
|
|
|
|
time.Sleep(5 * time.Second)
|
|
|
|
}
|