Versions in this module Expand all Collapse all v1 v1.2.0 Nov 8, 2022 v1.1.0 Jun 13, 2022 Changes in this version + const FieldRequestID v1.0.0 Jun 13, 2022 Changes in this version + const FieldMethod + const FieldRemoteAddr + const FieldServerName + const FieldServerType + var ErrInvalidOptionValue = errors.New("invalid option value") + var ErrNoLoggerInContext = errors.New("no logger in context") + func GetFromContext(ctx context.Context, noopLoggerIfNotPresent ...bool) (*zap.Logger, error) + type Field string + type Logger struct + func New(opts ...Option) (*Logger, error) + func (l *Logger) GetLogger() *zap.Logger + func (l *Logger) StreamInterceptor() grpc.StreamServerInterceptor + func (l *Logger) UnaryInterceptor() grpc.UnaryServerInterceptor + type Option func(*Logger) error + func WithFields(fields ...Field) Option + func WithLogger(logger *zap.Logger) Option + func WithServerName(serverName string) Option