Documentation ¶
Index ¶
- func Debug(msg string, fields ...interface{})
- func Debugf(msg string, args ...interface{})
- func Error(msg string, fields ...interface{})
- func Errorf(msg string, args ...interface{})
- func Fatal(msg string, fields ...interface{})
- func Fatalf(msg string, args ...interface{})
- func Info(msg string, fields ...interface{})
- func Infof(msg string, args ...interface{})
- func SetLogger(log Logger)
- func Warn(msg string, fields ...interface{})
- func Warnf(msg string, args ...interface{})
- type Logger
- type MockLogger
- func (_m *MockLogger) Debug(msg string, fields ...interface{})
- func (_m *MockLogger) Debugf(msg string, args ...interface{})
- func (_m *MockLogger) Error(msg string, fields ...interface{})
- func (_m *MockLogger) Errorf(msg string, args ...interface{})
- func (_m *MockLogger) Fatal(msg string, fields ...interface{})
- func (_m *MockLogger) Fatalf(msg string, args ...interface{})
- func (_m *MockLogger) Info(msg string, fields ...interface{})
- func (_m *MockLogger) Infof(msg string, args ...interface{})
- func (_m *MockLogger) Warn(msg string, fields ...interface{})
- func (_m *MockLogger) Warnf(msg string, args ...interface{})
- type StdoutLogger
- func (s *StdoutLogger) Debug(msg string, fields ...interface{})
- func (s *StdoutLogger) Debugf(msg string, args ...interface{})
- func (s *StdoutLogger) Error(msg string, fields ...interface{})
- func (s *StdoutLogger) Errorf(msg string, args ...interface{})
- func (s *StdoutLogger) Fatal(msg string, fields ...interface{})
- func (s *StdoutLogger) Fatalf(msg string, args ...interface{})
- func (s *StdoutLogger) Info(msg string, fields ...interface{})
- func (s *StdoutLogger) Infof(msg string, args ...interface{})
- func (s *StdoutLogger) Warn(msg string, fields ...interface{})
- func (s *StdoutLogger) Warnf(msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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