Documentation
¶
Index ¶
- func BetterDefault()
- func Extract(ctx context.Context) *zapContext
- func GinMiddleware(logger *zap.Logger, hooks ...HookFunc) gin.HandlerFunc
- func L(ctx context.Context) *zap.Logger
- func OpenTraceInject(ctx context.Context) context.Context
- func S(ctx context.Context) *zap.SugaredLogger
- func Sampled(ctx context.Context) *zap.Logger
- func ToContext(ctx context.Context, logger *zap.Logger) context.Context
- func UnaryServerInterceptor(logger *zap.Logger, hooks ...HookFunc) grpc.UnaryServerInterceptor
- type HookFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BetterDefault ¶
func BetterDefault()
func GinMiddleware ¶
func GinMiddleware(logger *zap.Logger, hooks ...HookFunc) gin.HandlerFunc
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(logger *zap.Logger, hooks ...HookFunc) grpc.UnaryServerInterceptor
Types ¶
Click to show internal directories.
Click to hide internal directories.