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:
@@ -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日志")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user