Documentation ¶
Overview ¶
Package log is a generated GoMock package.
Index ¶
- Constants
- func RegisterAndUseMockLog(mockCtl *gomock.Controller)
- func SetUseLog(pLogName string) error
- type LogInterface
- type MockLogInterface
- func (m *MockLogInterface) Debugf(template string, args ...interface{})
- func (m *MockLogInterface) EXPECT() *MockLogInterfaceMockRecorder
- func (m *MockLogInterface) Errorf(template string, args ...interface{})
- func (m *MockLogInterface) SetLevel(pLevel int) error
- func (m *MockLogInterface) Start(pFileName string, pMaxSizeMB, pMaxBackupFileNum, pMaxAgeDay int, ...) error
- func (m *MockLogInterface) Stop() error
- func (m *MockLogInterface) Sync() error
- func (m *MockLogInterface) Warnf(template string, args ...interface{})
- type MockLogInterfaceMockRecorder
- func (mr *MockLogInterfaceMockRecorder) Debugf(template interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLogInterfaceMockRecorder) Errorf(template interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLogInterfaceMockRecorder) SetLevel(pLevel interface{}) *gomock.Call
- func (mr *MockLogInterfaceMockRecorder) Start(pFileName, pMaxSizeMB, pMaxBackupFileNum, pMaxAgeDay, pCompress interface{}) *gomock.Call
- func (mr *MockLogInterfaceMockRecorder) Stop() *gomock.Call
- func (mr *MockLogInterfaceMockRecorder) Sync() *gomock.Call
- func (mr *MockLogInterfaceMockRecorder) Warnf(template interface{}, args ...interface{}) *gomock.Call
- type ZapLumberjack
- func (zl *ZapLumberjack) Debugf(template string, args ...interface{})
- func (zl *ZapLumberjack) Errorf(template string, args ...interface{})
- func (zl *ZapLumberjack) SetLevel(pLevel int) error
- func (zl *ZapLumberjack) Start(pFileName string, pMaxSizeMB int, pMaxBackupFileNum int, pMaxAgeDay int, ...) error
- func (zl *ZapLumberjack) Stop() error
- func (zl *ZapLumberjack) Sync() error
- func (zl *ZapLumberjack) Warnf(template string, args ...interface{})
Constants ¶
const ( DebugLevel = iota WarnLevel ErrorLevel )
Variables ¶
This section is empty.
Functions ¶
func RegisterAndUseMockLog ¶
func RegisterAndUseMockLog(mockCtl *gomock.Controller)
Types ¶
type LogInterface ¶
type LogInterface interface { Start(pFileName string, pMaxSizeMB int, pMaxBackupFileNum int, pMaxAgeDay int, pCompress bool) error Sync() error Stop() error SetLevel(pLevel int) error Errorf(template string, args ...interface{}) Warnf(template string, args ...interface{}) Debugf(template string, args ...interface{}) }
type MockLogInterface ¶
type MockLogInterface struct {
// contains filtered or unexported fields
}
MockLogInterface is a mock of LogInterface interface.
func NewMockLogInterface ¶
func NewMockLogInterface(ctrl *gomock.Controller) *MockLogInterface
NewMockLogInterface creates a new mock instance.
func (*MockLogInterface) Debugf ¶
func (m *MockLogInterface) Debugf(template string, args ...interface{})
Debugf mocks base method.
func (*MockLogInterface) EXPECT ¶
func (m *MockLogInterface) EXPECT() *MockLogInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogInterface) Errorf ¶
func (m *MockLogInterface) Errorf(template string, args ...interface{})
Errorf mocks base method.
func (*MockLogInterface) SetLevel ¶
func (m *MockLogInterface) SetLevel(pLevel int) error
SetLevel mocks base method.
func (*MockLogInterface) Start ¶
func (m *MockLogInterface) Start(pFileName string, pMaxSizeMB, pMaxBackupFileNum, pMaxAgeDay int, pCompress bool) error
Start mocks base method.
func (*MockLogInterface) Warnf ¶
func (m *MockLogInterface) Warnf(template string, args ...interface{})
Warnf mocks base method.
type MockLogInterfaceMockRecorder ¶
type MockLogInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockLogInterfaceMockRecorder is the mock recorder for MockLogInterface.
func (*MockLogInterfaceMockRecorder) Debugf ¶
func (mr *MockLogInterfaceMockRecorder) Debugf(template interface{}, args ...interface{}) *gomock.Call
Debugf indicates an expected call of Debugf.
func (*MockLogInterfaceMockRecorder) Errorf ¶
func (mr *MockLogInterfaceMockRecorder) Errorf(template interface{}, args ...interface{}) *gomock.Call
Errorf indicates an expected call of Errorf.
func (*MockLogInterfaceMockRecorder) SetLevel ¶
func (mr *MockLogInterfaceMockRecorder) SetLevel(pLevel interface{}) *gomock.Call
SetLevel indicates an expected call of SetLevel.
func (*MockLogInterfaceMockRecorder) Start ¶
func (mr *MockLogInterfaceMockRecorder) Start(pFileName, pMaxSizeMB, pMaxBackupFileNum, pMaxAgeDay, pCompress interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockLogInterfaceMockRecorder) Stop ¶
func (mr *MockLogInterfaceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockLogInterfaceMockRecorder) Sync ¶
func (mr *MockLogInterfaceMockRecorder) Sync() *gomock.Call
Sync indicates an expected call of Sync.
func (*MockLogInterfaceMockRecorder) Warnf ¶
func (mr *MockLogInterfaceMockRecorder) Warnf(template interface{}, args ...interface{}) *gomock.Call
Warnf indicates an expected call of Warnf.
type ZapLumberjack ¶
type ZapLumberjack struct {
// contains filtered or unexported fields
}
func (*ZapLumberjack) Debugf ¶
func (zl *ZapLumberjack) Debugf(template string, args ...interface{})
func (*ZapLumberjack) Errorf ¶
func (zl *ZapLumberjack) Errorf(template string, args ...interface{})
func (*ZapLumberjack) SetLevel ¶
func (zl *ZapLumberjack) SetLevel(pLevel int) error
func (*ZapLumberjack) Stop ¶
func (zl *ZapLumberjack) Stop() error
func (*ZapLumberjack) Sync ¶
func (zl *ZapLumberjack) Sync() error
func (*ZapLumberjack) Warnf ¶
func (zl *ZapLumberjack) Warnf(template string, args ...interface{})