wmlogger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Module = "watermill"

Module is the name of the Watermill module used for logging.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger wraps the TrustBloc logger and implements the Watermill logger adapter interface.

func New

func New() *Logger

New returns a new Watermill logger adapter.

func (*Logger) Debug

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

Debug logs a debug message.

func (*Logger) Error

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

Error logs an error.

func (*Logger) Info

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

Info logs an informational message.

func (*Logger) Trace

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

Trace logs a trace message. Note that this implementation uses a debug log for trace.

func (*Logger) With

With returns a new logger with the supplied fields so that each log contains these fields.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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