mirror of
https://gitee.ltd/lxh/logger.git
synced 2026-04-03 06:35:51 +08:00
⬆️ 更新依赖版本到最新版
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user