Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(logging): Swap loggers from zap to log/slog (#319)
* go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * go-template/_template/cmd/app: swapped zap logger with log/slog * go-template/README: updated documentation references for logging * fixup! go-template/go.mod: ran go mod tidy * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * go-template/pkg/gotemplate: excluded '_test.go' files from going into the text template parser * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * Update _template/internal/log/context_test.go Co-authored-by: Johannes Riecken <johannes.riecken@gmail.com> * Update _template/internal/log/context_test.go Co-authored-by: Johannes Riecken <johannes.riecken@gmail.com> * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * 311: github/workflows: bump Go version to 1.21 * fixup! go-template/go.mod: ran go mod tidy * fixup! 311: github/workflows: bump Go version to 1.21 * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/cmd/app: swapped zap logger with log/slog * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger * fixup! go-template/_template/internal/log: swapped zap logger with log/slog; added trace context handler; added gRPC interceptor logger --------- Co-authored-by: Johannes Riecken <johannes.riecken@gmail.com>
- Loading branch information