logger

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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