-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[logger] Revamp logger to use log/slog. (#462)
* Use the newly added `log/slog` (added in Go 1.21) package for logging instead of Google's logger. This makes logs more machine-readable and logs to stderr without any flag. * By default logs are in log-format, sequence of key=value pairs. * Logs can now be emitted in JSON format, using flag `--logfmt=json`. * Add a lot of tests.
- Loading branch information
Showing
15 changed files
with
521 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/cloudprober/cloudprober | ||
|
||
go 1.20 | ||
go 1.21 | ||
|
||
require ( | ||
cloud.google.com/go v0.81.0 | ||
|
Oops, something went wrong.