memory = KB, GC Times = 程序终止执行 日志组件 内存消耗、垃圾回收 方法粒度
改写日志组件 zap
runtimeInfo := utils.ConcatStr(utils.ConcatInterfaceStr(utils.MemStats()), utils.Hostname(), " ", os.Getenv("USER"), utils.ConcatStr(utils.GetLocalIPs()...)) data = append(data, zap.String("runtime", runtimeInfo))
2022-08-29T16:07:10.857+0800 ERROR {"ts": "2022-08-29T16:07:10+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 4476 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:10.859+0800 ERROR {"ts": "2022-08-29T16:07:10+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 4476 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:14.851+0800 ERROR {"ts": "2022-08-29T16:07:14+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 4766 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:14.851+0800 ERROR {"ts": "2022-08-29T16:07:14+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 4765 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:18.852+0800 ERROR {"ts": "2022-08-29T16:07:18+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5033 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:18.862+0800 ERROR {"ts": "2022-08-29T16:07:18+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5070 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:22.854+0800 ERROR {"ts": "2022-08-29T16:07:22+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6033 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:22.854+0800 ERROR {"ts": "2022-08-29T16:07:22+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6032 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:32.844+0800 ERROR {"ts": "2022-08-29T16:07:32+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6157 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:36.859+0800 ERROR {"ts": "2022-08-29T16:07:36+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6410 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:36.859+0800 ERROR {"ts": "2022-08-29T16:07:36+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6411 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:36.859+0800 ERROR {"ts": "2022-08-29T16:07:36+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6409 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:40.843+0800 ERROR {"ts": "2022-08-29T16:07:40+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6659 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:40.843+0800 ERROR {"ts": "2022-08-29T16:07:40+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6660 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:40.843+0800 ERROR {"ts": "2022-08-29T16:07:40+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6662 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:44.848+0800 ERROR {"ts": "2022-08-29T16:07:44+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6910 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:44.849+0800 ERROR {"ts": "2022-08-29T16:07:44+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6930 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:44.849+0800 ERROR {"ts": "2022-08-29T16:07:44+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6911 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:48.850+0800 ERROR {"ts": "2022-08-29T16:07:48+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 7944 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:07:48.850+0800 ERROR {"ts": "2022-08-29T16:07:48+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 7943 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:02.844+0800 ERROR {"ts": "2022-08-29T16:08:02+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8308 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:02.844+0800 ERROR {"ts": "2022-08-29T16:08:02+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8309 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:06.849+0800 ERROR {"ts": "2022-08-29T16:08:06+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8522 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:06.852+0800 ERROR {"ts": "2022-08-29T16:08:06+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8520 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:10.854+0800 ERROR {"ts": "2022-08-29T16:08:10+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8717 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:10.854+0800 ERROR {"ts": "2022-08-29T16:08:10+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8717 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:14.842+0800 ERROR {"ts": "2022-08-29T16:08:14+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8883 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:14.874+0800 ERROR {"ts": "2022-08-29T16:08:14+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 8920 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:28.849+0800 ERROR {"ts": "2022-08-29T16:08:28+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9286 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:28.868+0800 ERROR {"ts": "2022-08-29T16:08:28+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9323 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:32.846+0800 ERROR {"ts": "2022-08-29T16:08:32+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9461 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:32.846+0800 ERROR {"ts": "2022-08-29T16:08:32+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9459 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:36.849+0800 ERROR {"ts": "2022-08-29T16:08:36+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9655 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:36.849+0800 ERROR {"ts": "2022-08-29T16:08:36+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9654 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:40.854+0800 ERROR {"ts": "2022-08-29T16:08:40+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9868 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:40.871+0800 ERROR {"ts": "2022-08-29T16:08:40+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9899 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:42.855+0800 ERROR {"ts": "2022-08-29T16:08:42+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 9943 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:46.841+0800 ERROR {"ts": "2022-08-29T16:08:46+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 10054 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:50.852+0800 ERROR {"ts": "2022-08-29T16:08:50+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 10139 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:54.860+0800 ERROR {"ts": "2022-08-29T16:08:54+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 10270 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:54.866+0800 ERROR {"ts": "2022-08-29T16:08:54+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 10299 KB, GC Times = 1]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:08:58.843+0800 ERROR {"ts": "2022-08-29T16:08:58+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5120 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:02.847+0800 ERROR {"ts": "2022-08-29T16:09:02+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5221 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:06.846+0800 ERROR {"ts": "2022-08-29T16:09:06+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5354 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:08.856+0800 ERROR {"ts": "2022-08-29T16:09:08+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5395 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:12.857+0800 ERROR {"ts": "2022-08-29T16:09:12+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5546 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:16.852+0800 ERROR {"ts": "2022-08-29T16:09:16+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5629 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:20.846+0800 ERROR {"ts": "2022-08-29T16:09:20+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5759 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:20.860+0800 ERROR {"ts": "2022-08-29T16:09:20+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5791 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:24.854+0800 ERROR {"ts": "2022-08-29T16:09:24+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5905 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:28.844+0800 ERROR {"ts": "2022-08-29T16:09:28+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 5987 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75 2022-08-29T16:09:32.850+0800 ERROR {"ts": "2022-08-29T16:09:32+08:00", "caller": "utils.go:54", "trace_id": "", "span_id": "", "msg": "exit status 1 [CIT/internal/biz._pingByCmd.func1 \n D:/AApp/internal/biz/utils.go \n 54]", "runtime": "[[] memory = 6070 KB, GC Times = 2]v3910-07 1.2.3.4,4.5.6.7"} CIT/internal/log.(*CustomizeLogger).Log D:/AApp/internal/log/Customize.go:46 github.com/go-kratos/kratos/v2/log.(*logger).Log C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/log.go:30 github.com/go-kratos/kratos/v2/log.(*Helper).Error C:/Users/dev/go/pkg/mod/github.com/go-kratos/kratos/v2@v2.4.1/log/helper.go:101 CIT/internal/biz._pingByCmd.func1 D:/AApp/internal/biz/utils.go:54 CIT/internal/biz._pingByCmd D:/AApp/internal/biz/utils.go:67 CIT/internal/biz.pongMixed D:/AApp/internal/biz/utils.go:82 CIT/internal/biz.WatchPingOnce.func3 D:/AApp/internal/biz/watchPing.go:75
package log import ( "AApp/internal/SRE" "AApp/internal/utils" "fmt" "os" "github.com/go-kratos/kratos/v2/log" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) type CustomizeLogger struct { log *zap.Logger Sync func() error sreCli *SRE.SREClient } // Log Implementation of logger interface func (l *CustomizeLogger) Log(level log.Level, keyvals ...interface{}) error { if len(keyvals) == 0 || len(keyvals)%2 != 0 { l.log.Warn(fmt.Sprint("Keyvalues must appear in pairs: ", keyvals)) return nil } // Zap.Field is used when keyvals pairs appear var data []zap.Field for i := 0; i < len(keyvals); i += 2 { data = append(data, zap.Any(fmt.Sprint(keyvals[i]), fmt.Sprint(keyvals[i+1]))) } runtimeInfo := utils.ConcatStr(utils.ConcatInterfaceStr(utils.MemStats()), utils.Hostname(), " ", os.Getenv("USER"), utils.ConcatStr(utils.GetLocalIPs()...)) data = append(data, zap.String("runtime", runtimeInfo)) switch level { case log.LevelDebug: l.log.Debug("", data...) go l.sreCli.Alert(-1, "Debug", nil, data) case log.LevelInfo: l.log.Info("", data...) case log.LevelWarn: l.log.Warn("", data...) case log.LevelError: l.log.Error("", data...) go l.sreCli.Alert(-2, "Error", nil, data) } return nil } const PathSeparator = string(os.PathSeparator) // zap package - go.uber.org/zap - pkg.go.dev https://pkg.go.dev/go.uber.org/zap func NewCustomizeLogger(Filename string, Extend ...interface{}) *CustomizeLogger { // For some users, the presets offered by the NewProduction, NewDevelopment, // and NewExample constructors won't be appropriate. For most of those // users, the bundled Config struct offers the right balance of flexibility // and convenience. (For more complex needs, see the AdvancedConfiguration // example.) // // See the documentation for Config and zapcore.EncoderConfig for all the // available options. // First, define our level-handling logic. highPriority := zap.LevelEnablerFunc(func(lvl zapcore.Level) bool { return lvl >= zapcore.ErrorLevel }) lowPriority := zap.LevelEnablerFunc(func(lvl zapcore.Level) bool { return lvl < zapcore.ErrorLevel }) en := func() zapcore.EncoderConfig { return zapcore.EncoderConfig{ TimeKey: "ts", LevelKey: "level", NameKey: "logger", CallerKey: "caller", FunctionKey: zapcore.OmitKey, MessageKey: "msg", StacktraceKey: "stacktrace", LineEnding: zapcore.DefaultLineEnding, EncodeLevel: zapcore.CapitalLevelEncoder, EncodeTime: zapcore.ISO8601TimeEncoder, EncodeDuration: zapcore.SecondsDurationEncoder, EncodeCaller: zapcore.ShortCallerEncoder, } } // zap package - go.uber.org/zap - pkg.go.dev https://pkg.go.dev/go.uber.org/zap // The bundled Config struct only supports the most common configuration // options. More complex needs, like splitting logs between multiple files // or writing to non-file outputs, require use of the zapcore package. coreHighPriority := zapcore.NewCore( zapcore.NewConsoleEncoder(en()), zapcore.NewMultiWriteSyncer( zapcore.AddSync(os.Stdout), zapcore.AddSync(IoWriter4SplitFile(Filename+"-ERROR.log")), ), highPriority) coreLowPriority := zapcore.NewCore( zapcore.NewJSONEncoder(en()), zapcore.NewMultiWriteSyncer( zapcore.AddSync(os.Stdout), zapcore.AddSync(IoWriter4SplitFile(Filename+"-DEBUG.log")), ), lowPriority) opts := []zap.Option{ zap.AddStacktrace(zapcore.WarnLevel), } core := zapcore.NewTee( coreHighPriority, coreLowPriority, ) l := zap.New(core, opts...) sreCli := &SRE.SREClient{} if len(Extend) > 0 { QywxApiAlert := Extend[0].(string) sreCli.QywxApiAlertRobot = QywxApiAlert } return &CustomizeLogger{log: l, Sync: l.Sync, sreCli: sreCli} }
主动上报
memory = 430197 KB, GC Times = 41 程序终止执行