agent-substrate / agent-substrate/substrate

Need a logging convention

Đang mở
#53 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
area/observability kind/docs
Ngôn ngữ chính
Go
Star
1.8k
Fork
316
Merge trung bình
2 ngày 43 phút
Pull request đã merge (30 ngày)
287

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.