logger

package
v2.1.1-0...-182a82a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx *broker.Context, msg string, fields ...zap.Field)

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

func Error(ctx *broker.Context, msg string, fields ...zap.Field)

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

func Info(ctx *broker.Context, msg string, fields ...zap.Field)

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 SetLevel

func SetLevel(ctx *broker.Context, pattern string, level zapcore.Level) error

SetLevel sets all modules matching the given pattern with the given log level

func Warn

func Warn(ctx *broker.Context, msg string, fields ...zap.Field)

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

func WithFields(parent *broker.Context, fields ...zap.Field) *broker.Context

WithFields adds structured context to the defined logger. Fields added to the child don't affect the parent, and vice versa.

func WithLogger

func WithLogger(parent *broker.Context) *broker.Context

WithLogger creates a child context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL