Documentation
¶
Index ¶
- Variables
- func FromContext(ctx context.Context) *zap.Logger
- func GRPCLogFieldsToZap(fields logging.Fields) []zap.Field
- func InitLogging(ctx context.Context, level string, zapCore zapcore.Core)
- func ReqScopeLog(ctx context.Context) *zap.Logger
- func ToContext(ctx context.Context, log *zap.Logger) context.Context
- type Logger
Constants ¶
This section is empty.
Variables ¶
Implement missing functions here.
Functions ¶
func FromContext ¶
FromContext returns the logger from the context if one exists. Otherwise it returns a new logger.
func GRPCLogFieldsToZap ¶ added in v0.30.0
func InitLogging ¶
InitLogging initializes the global logger.
func ReqScopeLog ¶ added in v0.30.0
ReqScopeLog returns a request-scoped logger with request fields populated.
Types ¶
Click to show internal directories.
Click to hide internal directories.