package
1.2.120
Repository: https://github.com/searking/golang.git
Documentation: pkg.go.dev

# Packages

Package logruslogger defines logrus-based logging for grpc.

# Functions

DefaultSlogLogger wraps [slog.Default]'s [slog.Handler] to be compatible with [grpclog.LoggerV2], the experimental [grpclog.DepthLoggerV2] and the deprecated [grpclog.Logger].
NewSlogger wraps a slog's Logger to be compatible with [grpclog.LoggerV2], the experimental [grpclog.DepthLoggerV2] and the deprecated [grpclog.Logger].
WithSloggerHandler sets Handler in slogger.

# Constants

No description provided by the author

# Structs

EmptySloggerOption does not alter the configuration.

# Interfaces

A SloggerOption sets options.

# Type aliases

SloggerOptionFunc wraps a function that modifies slogger into an implementation of the SloggerOption interface.