logger

package
v0.48.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, fields ...zap.Field)
	Info(msg string, fields ...zap.Field)
	Warn(msg string, fields ...zap.Field)
	Error(msg string, fields ...zap.Field)
	Fatal(msg string, fields ...zap.Field)
}

func New

func New() Logger

type LoggerMock

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

func (*LoggerMock) AssertLog

func (l *LoggerMock) AssertLog(t *testing.T, level zapcore.Level, msg string)

AssertLog asserts that the logger was called with the given log level, message and fields.

func (*LoggerMock) Error

func (l *LoggerMock) Error(msg string, fields ...zap.Field)

func (*LoggerMock) Fatal

func (l *LoggerMock) Fatal(msg string, fields ...zap.Field)

func (*LoggerMock) Info

func (l *LoggerMock) Info(msg string, fields ...zap.Field)

func (*LoggerMock) Log

func (l *LoggerMock) Log(lvl zapcore.Level, msg string, fields ...zap.Field)

func (*LoggerMock) Warn

func (l *LoggerMock) Warn(msg string, fields ...zap.Field)

Jump to

Keyboard shortcuts

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