logging

package module
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 5 Imported by: 22

README

LOGGING

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	With(fields ...zapcore.Field) *zap.Logger
	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 NewDefaultLogger

func NewDefaultLogger(e *configs.AppConfigs) (Logger, error)

func NewFileLogger

func NewFileLogger(e *configs.AppConfigs) (Logger, error)

type MockLogger

type MockLogger struct {
	mock.Mock
}

func NewMockLogger

func NewMockLogger() *MockLogger

func (*MockLogger) Debug

func (m *MockLogger) Debug(msg string, fields ...zap.Field)

func (*MockLogger) Error

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

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(msg string, fields ...zap.Field)

func (*MockLogger) Info

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

func (*MockLogger) Warn

func (m *MockLogger) Warn(msg string, fields ...zap.Field)

func (*MockLogger) With

func (m *MockLogger) With(fields ...zap.Field) *zap.Logger

Jump to

Keyboard shortcuts

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