Closed aratz-lasa closed 1 year ago
@richardartoul slog has an option for adding the source code position on every log. I've never used that because I don't find it necessary. But would you like to activate it or set a flag for activating it?
Looks good! Just have some nits.
Thanks for doing this!
What ๐ต๏ธโโ๏ธ
This PR replaces log with slog, a structured logger that will soon become part of the standard Go library.
Why ๐
It makes logging more performant and tunable.
Testing ๐งช
go test ./...
from rootgo run ./examples/dnsregistry/main.go
from rootDemo