2
0
mirror of https://gitee.ltd/lxh/logger.git synced 2026-04-16 20:55:49 +08:00

:arrow_up:升级loki-client包依赖

This commit is contained in:
coward
2025-02-11 09:58:52 +08:00
parent aff875eb11
commit a1a701428b
4 changed files with 1023 additions and 363 deletions

View File

@@ -21,3 +21,19 @@ func TestLogger2(t *testing.T) {
log.Info("我是测试消息")
//time.Sleep(5 * time.Second)
}
func TestLogger3(t *testing.T) {
InitLogger(LogConfig{
Mode: Dev,
LokiEnable: true,
FileEnable: false,
LokiHost: "",
LokiPort: 0,
LokiSource: "test-logger",
LokiJob: "test-logger",
})
log.Info("这是info日志")
log.Debug("这是debug日志")
log.Warn("这是warn日志")
}