2
0
mirror of https://gitee.ltd/lxh/logger.git synced 2026-04-03 06:35:51 +08:00

⬆️ 更新依赖版本到最新版

This commit is contained in:
李寻欢
2022-05-18 10:42:45 +08:00
parent efd43e42a8
commit c53b7deacb
4 changed files with 118 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
package logger
import (
"go.uber.org/zap"
"testing"
"time"
)
@@ -14,3 +15,9 @@ func TestLogger1(t *testing.T) {
Say.Info("我是测试消息")
time.Sleep(5 * time.Second)
}
func TestLogger2(t *testing.T) {
InitLogger(LogConfig{Mode: Dev, LokiEnable: false, FileEnable: true})
zap.S().Info("我是测试消息")
time.Sleep(5 * time.Second)
}