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 摘要。