slog
slog copied to clipboard
Minimal structured logging library for Go
Bumps [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go) from 1.6.1 to 1.8.0. Release notes Sourced from cloud.google.com/go/compute's releases. compute: v1.8.0 1.8.0 (2022-08-09) Features compute: Update Compute Engine API to revision 20220720 (#723) (3db735c) video: v1.7.0 1.7.0...
Showing day, year, and month feels excessive for human output. If logs are being ingested years at a time, the system consuming should be responsible for tracking the year.
When a route is log heavy, the response shouldn't wait for all the logs to be marshalled/written. Right now it's the job of the sync but perhaps we should provide...
Zerolog has this nifty api [`log.Err(err error)`](https://github.com/rs/zerolog/blob/master/log.go#L320-L330) that is `Error` level if `err != nil` and `Info` level if `err == nil` The basic gist to avoid this common code:...
https://www.komu.engineer/blogs/log-without-losing-context/log-without-losing-context
Right now it's relatively difficult to find the default logger to use if an explicit logger is not available. It would be nice to be able to do ```go slog.Error(...)...
Also should use my old reflection encoder to generate diffs to keep the assert library zero dependency. Related #77 #74
Bumps [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go) from 1.6.1 to 1.10.0. Release notes Sourced from cloud.google.com/go/compute's releases. securitycenter: v1.10.0 1.10.0 (2022-07-26) Features securitycenter: Added container field to findings attributes feat: Added kubernetes field to findings...
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.8 to 0.5.9. Release notes Sourced from github.com/google/go-cmp's releases. v0.5.9 Reporter changes: (#299) Adjust heuristic for line-based versus byte-based diffing (#306) Use value.TypeString in PathStep.String Code cleanup...