Documentation ¶
Index ¶
- Constants
- func Error(err error) zapcore.Field
- func Fields(ctx context.Context) []interface{}
- func ProtoMessage(key string, val interface{}) zapcore.Field
- func StreamServerInterceptor(logger *zap.Logger, opts ...Option) grpc.StreamServerInterceptor
- func UnaryServerInterceptor(logger *zap.Logger, opts ...Option) grpc.UnaryServerInterceptor
- func WithFields(ctx context.Context, fields []zapcore.Field) context.Context
- func ZapFields(ctx context.Context) []zapcore.Field
- type Leveler
- type LevelerFunc
- type Option
- type PayloadLeveler
Constants ¶
View Source
const DefaultPayloadLevel = zapcore.Level(zapcore.DebugLevel - 1)
DefaultPayloadLevel是记录有效负载时使用的默认级别
Variables ¶
This section is empty.
Functions ¶
func ProtoMessage ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(logger *zap.Logger, opts ...Option) grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(logger *zap.Logger, opts ...Option) grpc.UnaryServerInterceptor
Types ¶
type Option ¶
type Option func(o *options)
func WithLeveler ¶
func WithPayloadLeveler ¶
func WithPayloadLeveler(l PayloadLeveler) Option
Directories ¶
Path | Synopsis |
---|---|
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。
|
此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 伪造者生成的代码。 |
Click to show internal directories.
Click to hide internal directories.