Documentation
¶
Index ¶
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func InLevel(levels []Level, level Level) bool
- func Infof(format string, v ...interface{})
- func Tracef(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type ILevel
- type ILevelMock
- type ILoggerMock
- type INotifierMock
- type Ilogger
- type IloggerMock
- type Level
- type LevelMock
- type LevelMockMock
- type Logger
- type LoggerMock
- func (mockRecv *LoggerMock) Debugf(format string, v ...interface{})
- func (mockRecv *LoggerMock) Errorf(format string, v ...interface{})
- func (mockRecv *LoggerMock) Fatalf(format string, v ...interface{})
- func (mockRecv *LoggerMock) Infof(format string, v ...interface{})
- func (mockRecv *LoggerMock) SetNotify(notify Notifier)
- func (mockRecv *LoggerMock) Tracef(format string, v ...interface{})
- func (mockRecv *LoggerMock) Warnf(format string, v ...interface{})
- type LoggerMockMock
- func (mockRecv *LoggerMockMock) Debugf(format string, v ...interface{})
- func (mockRecv *LoggerMockMock) Errorf(format string, v ...interface{})
- func (mockRecv *LoggerMockMock) Fatalf(format string, v ...interface{})
- func (mockRecv *LoggerMockMock) Infof(format string, v ...interface{})
- func (mockRecv *LoggerMockMock) SetNotify(notify Notifier)
- func (mockRecv *LoggerMockMock) Tracef(format string, v ...interface{})
- func (mockRecv *LoggerMockMock) Warnf(format string, v ...interface{})
- type Notifier
- type NotifierMock
- type NotifierMockMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ILevelMock ¶ added in v0.5.0
type ILevelMock interface{ All() []Level }
type ILoggerMock ¶ added in v0.5.0
type INotifierMock ¶ added in v0.5.0
type IloggerMock ¶ added in v0.5.0
type Level ¶
type Level string
Level 日志等级
type LevelMockMock ¶ added in v0.5.0
type LevelMockMock struct {
AllFunc func() []Level
}
func (*LevelMockMock) All ¶ added in v0.5.0
func (mockRecv *LevelMockMock) All() []Level
type Logger ¶
type Logger interface {
SetNotify(notify Notifier)
Fatalf(format string, v ...interface{})
Errorf(format string, v ...interface{})
Warnf(format string, v ...interface{})
Infof(format string, v ...interface{})
Debugf(format string, v ...interface{})
Tracef(format string, v ...interface{})
}
Logger 日志接口
type LoggerMock ¶ added in v0.5.0
type LoggerMock struct {
DebugfFunc func(format string, v ...interface{})
ErrorfFunc func(format string, v ...interface{})
FatalfFunc func(format string, v ...interface{})
InfofFunc func(format string, v ...interface{})
SetNotifyFunc func(notify Notifier)
TracefFunc func(format string, v ...interface{})
WarnfFunc func(format string, v ...interface{})
}
func (*LoggerMock) Debugf ¶ added in v0.5.0
func (mockRecv *LoggerMock) Debugf(format string, v ...interface{})
func (*LoggerMock) Errorf ¶ added in v0.5.0
func (mockRecv *LoggerMock) Errorf(format string, v ...interface{})
func (*LoggerMock) Fatalf ¶ added in v0.5.0
func (mockRecv *LoggerMock) Fatalf(format string, v ...interface{})
func (*LoggerMock) Infof ¶ added in v0.5.0
func (mockRecv *LoggerMock) Infof(format string, v ...interface{})
func (*LoggerMock) SetNotify ¶ added in v0.5.0
func (mockRecv *LoggerMock) SetNotify(notify Notifier)
func (*LoggerMock) Tracef ¶ added in v0.5.0
func (mockRecv *LoggerMock) Tracef(format string, v ...interface{})
func (*LoggerMock) Warnf ¶ added in v0.5.0
func (mockRecv *LoggerMock) Warnf(format string, v ...interface{})
type LoggerMockMock ¶ added in v0.5.0
type LoggerMockMock struct {
DebugfFunc func(format string, v ...interface{})
ErrorfFunc func(format string, v ...interface{})
FatalfFunc func(format string, v ...interface{})
InfofFunc func(format string, v ...interface{})
SetNotifyFunc func(notify Notifier)
TracefFunc func(format string, v ...interface{})
WarnfFunc func(format string, v ...interface{})
}
func (*LoggerMockMock) Debugf ¶ added in v0.5.0
func (mockRecv *LoggerMockMock) Debugf(format string, v ...interface{})
func (*LoggerMockMock) Errorf ¶ added in v0.5.0
func (mockRecv *LoggerMockMock) Errorf(format string, v ...interface{})
func (*LoggerMockMock) Fatalf ¶ added in v0.5.0
func (mockRecv *LoggerMockMock) Fatalf(format string, v ...interface{})
func (*LoggerMockMock) Infof ¶ added in v0.5.0
func (mockRecv *LoggerMockMock) Infof(format string, v ...interface{})
func (*LoggerMockMock) SetNotify ¶ added in v0.5.0
func (mockRecv *LoggerMockMock) SetNotify(notify Notifier)
func (*LoggerMockMock) Tracef ¶ added in v0.5.0
func (mockRecv *LoggerMockMock) Tracef(format string, v ...interface{})
func (*LoggerMockMock) Warnf ¶ added in v0.5.0
func (mockRecv *LoggerMockMock) Warnf(format string, v ...interface{})
type NotifierMock ¶ added in v0.5.0
func (*NotifierMock) Levels ¶ added in v0.5.0
func (mockRecv *NotifierMock) Levels() []Level
func (*NotifierMock) Notify ¶ added in v0.5.0
func (mockRecv *NotifierMock) Notify(msg string)
type NotifierMockMock ¶ added in v0.5.0
func (*NotifierMockMock) Levels ¶ added in v0.5.0
func (mockRecv *NotifierMockMock) Levels() []Level
func (*NotifierMockMock) Notify ¶ added in v0.5.0
func (mockRecv *NotifierMockMock) Notify(msg string)
Click to show internal directories.
Click to hide internal directories.