Documentation ¶
Index ¶
- func Debug(ctx *broker.Context, msg string, fields ...zap.Field)
- func Error(ctx *broker.Context, msg string, fields ...zap.Field)
- func Info(ctx *broker.Context, msg string, fields ...zap.Field)
- func SetLevel(ctx *broker.Context, pattern string, level zapcore.Level) error
- func Warn(ctx *broker.Context, msg string, fields ...zap.Field)
- func WithFields(parent *broker.Context, fields ...zap.Field) *broker.Context
- func WithLogger(parent *broker.Context) *broker.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
Debug logs a message at DebugLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func Error ¶
Error logs a message at ErrorLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func Info ¶
Info logs a message at InfoLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func Warn ¶
Warn logs a message at WarnLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func WithFields ¶
WithFields adds structured context to the defined logger. Fields added to the child don't affect the parent, and vice versa.
Types ¶
This section is empty.