logger

package
v0.0.0-...-3fc36a1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 1 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 struct {
	// contains filtered or unexported fields
}

Logger logs

func New

func New() *Logger

New Logger

func (*Logger) Error

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

Error log

func (*Logger) Info

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

Info log

type Loggerer

type Loggerer interface {
	Info(msg string, fields ...zap.Field)
	Error(msg string, fields ...zap.Field)
}

Loggerer is interface of Logger

type MockLogger

type MockLogger struct{}

MockLogger is logger for test

func (MockLogger) Error

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

Error log

func (MockLogger) Info

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

Info log

Jump to

Keyboard shortcuts

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