2
0
mirror of https://gitee.ltd/lxh/logger.git synced 2026-06-23 19:56:19 +08:00

🎨 优化日志用法

This commit is contained in:
李寻欢
2022-05-18 17:43:19 +08:00
parent 3ea919e06c
commit 27dd190fbd
4 changed files with 80 additions and 6 deletions

View File

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