log

package
v0.0.0-...-aaf3491 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields ...interface{})

Debug

func Debugf

func Debugf(msg string, args ...interface{})

Debugf

func Error

func Error(msg string, fields ...interface{})

Error

func Errorf

func Errorf(msg string, args ...interface{})

Errorf

func Fatal

func Fatal(msg string, fields ...interface{})

Fatal

func Fatalf

func Fatalf(msg string, args ...interface{})

Fatalf

func Info

func Info(msg string, fields ...interface{})

Info

func Infof

func Infof(msg string, args ...interface{})

Infof

func SetLogger

func SetLogger(log Logger)

SetLogger for testing

func Warn

func Warn(msg string, fields ...interface{})

Warn

func Warnf

func Warnf(msg string, args ...interface{})

Warnf

Types

type Logger

type Logger interface {
	Debug(msg string, fields ...interface{})
	Debugf(msg string, args ...interface{})
	Info(msg string, fields ...interface{})
	Infof(msg string, args ...interface{})
	Warn(msg string, fields ...interface{})
	Warnf(msg string, args ...interface{})
	Error(msg string, fields ...interface{})
	Errorf(msg string, args ...interface{})
	Fatal(msg string, fields ...interface{})
	Fatalf(msg string, args ...interface{})
}

Logger

type MockLogger

type MockLogger struct {
	mock.Mock
}

MockLogger is an autogenerated mock type for the Logger type

func (*MockLogger) Debug

func (_m *MockLogger) Debug(msg string, fields ...interface{})

Debug provides a mock function with given fields: msg, fields

func (*MockLogger) Debugf

func (_m *MockLogger) Debugf(msg string, args ...interface{})

Debugf provides a mock function with given fields: msg, args

func (*MockLogger) Error

func (_m *MockLogger) Error(msg string, fields ...interface{})

Error provides a mock function with given fields: msg, fields

func (*MockLogger) Errorf

func (_m *MockLogger) Errorf(msg string, args ...interface{})

Errorf provides a mock function with given fields: msg, args

func (*MockLogger) Fatal

func (_m *MockLogger) Fatal(msg string, fields ...interface{})

Fatal provides a mock function with given fields: msg, fields

func (*MockLogger) Fatalf

func (_m *MockLogger) Fatalf(msg string, args ...interface{})

Fatalf provides a mock function with given fields: msg, args

func (*MockLogger) Info

func (_m *MockLogger) Info(msg string, fields ...interface{})

Info provides a mock function with given fields: msg, fields

func (*MockLogger) Infof

func (_m *MockLogger) Infof(msg string, args ...interface{})

Infof provides a mock function with given fields: msg, args

func (*MockLogger) Warn

func (_m *MockLogger) Warn(msg string, fields ...interface{})

Warn provides a mock function with given fields: msg, fields

func (*MockLogger) Warnf

func (_m *MockLogger) Warnf(msg string, args ...interface{})

Warnf provides a mock function with given fields: msg, args

type StdoutLogger

type StdoutLogger struct {
}

default logger

func (*StdoutLogger) Debug

func (s *StdoutLogger) Debug(msg string, fields ...interface{})

Debug

func (*StdoutLogger) Debugf

func (s *StdoutLogger) Debugf(msg string, args ...interface{})

Debugf

func (*StdoutLogger) Error

func (s *StdoutLogger) Error(msg string, fields ...interface{})

Error

func (*StdoutLogger) Errorf

func (s *StdoutLogger) Errorf(msg string, args ...interface{})

Errorf

func (*StdoutLogger) Fatal

func (s *StdoutLogger) Fatal(msg string, fields ...interface{})

Fatal

func (*StdoutLogger) Fatalf

func (s *StdoutLogger) Fatalf(msg string, args ...interface{})

Fatalf

func (*StdoutLogger) Info

func (s *StdoutLogger) Info(msg string, fields ...interface{})

Info

func (*StdoutLogger) Infof

func (s *StdoutLogger) Infof(msg string, args ...interface{})

Infof

func (*StdoutLogger) Warn

func (s *StdoutLogger) Warn(msg string, fields ...interface{})

Warn

func (*StdoutLogger) Warnf

func (s *StdoutLogger) Warnf(msg string, args ...interface{})

Warnf

Jump to

Keyboard shortcuts

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