agent-substrate / agent-substrate/substrate

Need a logging convention

Open
#53 1 comment 0 reactions 0 assignees View on GitHub
area/observability kind/docs
Dominant language
Go
Stars
1.8k
Forks
316
Avg merge
2d 43m
Merged PRs (30d)
287

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.