Documentation ¶
Overview ¶
Package clog is a Context logger.
Index ¶
- Variables
- func DebugRPC(ctx context.Context, method string, req proto.Message, resp proto.Message)
- func DebugStructured(ctx context.Context, structuredPayload any, format string, args ...any)
- func Debugf(ctx context.Context, format string, args ...any)
- func Errorf(ctx context.Context, format string, args ...any)
- func Infof(ctx context.Context, format string, args ...any)
- func Warningf(ctx context.Context, format string, args ...any)
- func WithLabels(ctx context.Context, labels map[string]string) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugEnabled bool
DebugEnabled will log debug messages.
Functions ¶
func DebugStructured ¶
DebugStructured is like Debugf but sends structuredPayload instead of the text message to Cloud Logging.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.