watermillzap

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 2 Imported by: 0

README

watermillzap

Zap adapter for watermill's logger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger implements watermill.LoggerAdapter.

func NewLogger

func NewLogger(z *zap.Logger) Logger

func (Logger) Debug

func (l Logger) Debug(msg string, fields watermill.LogFields)

func (Logger) Error

func (l Logger) Error(msg string, err error, fields watermill.LogFields)

func (Logger) Info

func (l Logger) Info(msg string, fields watermill.LogFields)

func (Logger) Trace

func (l Logger) Trace(msg string, fields watermill.LogFields)

func (Logger) With

Jump to

Keyboard shortcuts

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