-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified logging middleware; Fields are now "any" type; Moved loggi…
…ng providers to examples only. (#552) Fixes #517 * Simpler interface, only one method. This allows adapter to be ultra simple, so moved them to examples only (!). * Fields are string, values are any. * "More" slog compatibility. I did not go for using slog natively as it's still experimental (see bigger discussion: https://gophers.slack.com/archives/C029RQSEE/p1679860885943619) Signed-off-by: bwplotka <bwplotka@gmail.com>
- Loading branch information
Showing
59 changed files
with
1,116 additions
and
4,426 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
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module github.com/grpc-ecosystem/go-grpc-middleware/interceptors/logging/examples | ||
|
||
go 1.19 | ||
|
||
require ( | ||
github.com/go-kit/log v0.2.1 | ||
github.com/go-logr/logr v1.2.4 | ||
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.0 | ||
github.com/phuslu/log v1.0.83 | ||
github.com/rs/zerolog v1.29.0 | ||
github.com/sirupsen/logrus v1.9.0 | ||
go.uber.org/zap v1.24.0 | ||
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 | ||
google.golang.org/grpc v1.53.0 | ||
k8s.io/klog/v2 v2.90.1 | ||
) | ||
|
||
require ( | ||
github.com/go-logfmt/logfmt v0.5.1 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/mattn/go-colorable v0.1.12 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
go.uber.org/atomic v1.7.0 // indirect | ||
go.uber.org/multierr v1.6.0 // indirect | ||
golang.org/x/net v0.8.0 // indirect | ||
golang.org/x/sys v0.6.0 // indirect | ||
golang.org/x/text v0.8.0 // indirect | ||
google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect | ||
google.golang.org/protobuf v1.30.0 // indirect | ||
) | ||
|
||
replace github.com/grpc-ecosystem/go-grpc-middleware/v2 => ../../../ |
Oops, something went wrong.