Documentation ¶
Index ¶
- func ContextFields(ctx context.Context) []log.Field
- func Debug(ctx context.Context, l log.Logger, msg string, fields ...log.Field)
- func Debugf(ctx context.Context, l log.Logger, format string, args ...interface{})
- func Error(ctx context.Context, l log.Logger, msg string, fields ...log.Field)
- func Errorf(ctx context.Context, l log.Logger, format string, args ...interface{})
- func Fatal(ctx context.Context, l log.Logger, msg string, fields ...log.Field)
- func Fatalf(ctx context.Context, l log.Logger, format string, args ...interface{})
- func Info(ctx context.Context, l log.Logger, msg string, fields ...log.Field)
- func Infof(ctx context.Context, l log.Logger, format string, args ...interface{})
- func Trace(ctx context.Context, l log.Logger, msg string, fields ...log.Field)
- func Tracef(ctx context.Context, l log.Logger, format string, args ...interface{})
- func Warn(ctx context.Context, l log.Logger, msg string, fields ...log.Field)
- func Warnf(ctx context.Context, l log.Logger, format string, args ...interface{})
- func WithFields(ctx context.Context, fields ...log.Field) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextFields ¶
ContextFields returns log.Fields bound with ctx. If no fields are bound, it returns nil.
func Debug ¶
Debug logs at Debug log level using fields both from arguments and ones that are bound to ctx.
func Debugf ¶
Debugf logs at Debug log level using fields that are bound to ctx. The message is formatted using provided arguments.
func Error ¶
Error logs at Error log level using fields both from arguments and ones that are bound to ctx.
func Errorf ¶
Errorf logs at Error log level using fields that are bound to ctx. The message is formatted using provided arguments.
func Fatal ¶
Fatal logs at Fatal log level using fields both from arguments and ones that are bound to ctx.
func Fatalf ¶
Fatalf logs at Fatal log level using fields that are bound to ctx. The message is formatted using provided arguments.
func Info ¶
Info logs at Info log level using fields both from arguments and ones that are bound to ctx.
func Infof ¶
Infof logs at Info log level using fields that are bound to ctx. The message is formatted using provided arguments.
func Trace ¶
Trace logs at Trace log level using fields both from arguments and ones that are bound to ctx.
func Tracef ¶
Tracef logs at Trace log level using fields that are bound to ctx. The message is formatted using provided arguments.
func Warn ¶
Warn logs at Warn log level using fields both from arguments and ones that are bound to ctx.
Types ¶
This section is empty.