mirror of
https://gitee.ltd/lxh/logger.git
synced 2026-06-23 19:56:19 +08:00
🎨 优化日志用法
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user