agent-substrate / agent-substrate/substrate

Need a logging convention

未关闭
#53 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area/observability kind/docs
主要语言
Go
星标
1.8k
派生
316
平均合并
2 天 43 分钟
30 天内合并 PR
287

描述

We should write down guidelines for when to use `slog.Info*` vs `slog.Debug*` vs.`slog.Warn*` vs. `slog.Error*`

I'm very biased, but I think `Warn` is pointless (but I like V levels, so ...).

Proposed:

* use `Info` for things you always want to see
* use `Debug` for things you want only when "verbose" is enabled
* don't use `Warn`
* use `Error` for things that require human attention

A "normal" log should not include `Error` lines.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。