Documentation
¶
Index ¶
- func FromContext(ctx context.Context) *slog.Logger
- func SetupLogger(isLocal bool, level string) (*slog.Logger, error)
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- func WithLogger(ctx context.Context, logger *slog.Logger) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
StreamServerInterceptor returns a grpc.StreamServerInterceptor that adds a logger to the context
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a grpc.UnaryServerInterceptor that adds a logger to the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.