mlog

package
v5.0.0-beta.26 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mlog is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	WithModule(module string) Logger

	Debug(v ...any)
	Debugf(format string, v ...any)

	DebugCtx(ctx context.Context, v ...any)
	DebugCtxf(ctx context.Context, format string, v ...any)

	Warning(v ...any)
	Warningf(format string, v ...any)

	WarningCtx(ctx context.Context, v ...any)
	WarningCtxf(ctx context.Context, format string, v ...any)

	Info(v ...any)
	Infof(format string, v ...any)

	InfoCtx(ctx context.Context, v ...any)
	InfoCtxf(ctx context.Context, format string, v ...any)

	Error(v ...any)
	Errorf(format string, v ...any)

	ErrorCtx(ctx context.Context, v ...any)
	ErrorCtxf(ctx context.Context, format string, v ...any)

	Fatal(v ...any)
	Fatalf(format string, v ...any)

	FatalCtx(ctx context.Context, v ...any)
	FatalCtxf(ctx context.Context, format string, v ...any)

	Flush() error

	HandlePanic(title string)
	HandlePanicWithCallback(title string, callback func(error))
}

func NewForConfig

func NewForConfig(cfg *config.Config) Logger

func NewLogrusLogger

func NewLogrusLogger(debug bool) Logger

NewLogrusLogger return contracts.Logger

func NewZapLogger

func NewZapLogger(debug bool) Logger

NewZapLogger impl contracts.Logger.

type MockLogger

type MockLogger struct {
	// contains filtered or unexported fields
}

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) Debug

func (m *MockLogger) Debug(arg0 ...any)

Debug mocks base method.

func (*MockLogger) DebugCtx

func (m *MockLogger) DebugCtx(arg0 context.Context, arg1 ...any)

DebugCtx mocks base method.

func (*MockLogger) DebugCtxf

func (m *MockLogger) DebugCtxf(arg0 context.Context, arg1 string, arg2 ...any)

DebugCtxf mocks base method.

func (*MockLogger) Debugf

func (m *MockLogger) Debugf(arg0 string, arg1 ...any)

Debugf mocks base method.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLogger) Error

func (m *MockLogger) Error(arg0 ...any)

Error mocks base method.

func (*MockLogger) ErrorCtx

func (m *MockLogger) ErrorCtx(arg0 context.Context, arg1 ...any)

ErrorCtx mocks base method.

func (*MockLogger) ErrorCtxf

func (m *MockLogger) ErrorCtxf(arg0 context.Context, arg1 string, arg2 ...any)

ErrorCtxf mocks base method.

func (*MockLogger) Errorf

func (m *MockLogger) Errorf(arg0 string, arg1 ...any)

Errorf mocks base method.

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(arg0 ...any)

Fatal mocks base method.

func (*MockLogger) FatalCtx

func (m *MockLogger) FatalCtx(arg0 context.Context, arg1 ...any)

FatalCtx mocks base method.

func (*MockLogger) FatalCtxf

func (m *MockLogger) FatalCtxf(arg0 context.Context, arg1 string, arg2 ...any)

FatalCtxf mocks base method.

func (*MockLogger) Fatalf

func (m *MockLogger) Fatalf(arg0 string, arg1 ...any)

Fatalf mocks base method.

func (*MockLogger) Flush

func (m *MockLogger) Flush() error

Flush mocks base method.

func (*MockLogger) HandlePanic

func (m *MockLogger) HandlePanic(arg0 string)

HandlePanic mocks base method.

func (*MockLogger) HandlePanicWithCallback

func (m *MockLogger) HandlePanicWithCallback(arg0 string, arg1 func(error))

HandlePanicWithCallback mocks base method.

func (*MockLogger) Info

func (m *MockLogger) Info(arg0 ...any)

Info mocks base method.

func (*MockLogger) InfoCtx

func (m *MockLogger) InfoCtx(arg0 context.Context, arg1 ...any)

InfoCtx mocks base method.

func (*MockLogger) InfoCtxf

func (m *MockLogger) InfoCtxf(arg0 context.Context, arg1 string, arg2 ...any)

InfoCtxf mocks base method.

func (*MockLogger) Infof

func (m *MockLogger) Infof(arg0 string, arg1 ...any)

Infof mocks base method.

func (*MockLogger) Warning

func (m *MockLogger) Warning(arg0 ...any)

Warning mocks base method.

func (*MockLogger) WarningCtx

func (m *MockLogger) WarningCtx(arg0 context.Context, arg1 ...any)

WarningCtx mocks base method.

func (*MockLogger) WarningCtxf

func (m *MockLogger) WarningCtxf(arg0 context.Context, arg1 string, arg2 ...any)

WarningCtxf mocks base method.

func (*MockLogger) Warningf

func (m *MockLogger) Warningf(arg0 string, arg1 ...any)

Warningf mocks base method.

func (*MockLogger) WithModule

func (m *MockLogger) WithModule(arg0 string) Logger

WithModule mocks base method.

type MockLoggerMockRecorder

type MockLoggerMockRecorder struct {
	// contains filtered or unexported fields
}

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Debug

func (mr *MockLoggerMockRecorder) Debug(arg0 ...any) *gomock.Call

Debug indicates an expected call of Debug.

func (*MockLoggerMockRecorder) DebugCtx

func (mr *MockLoggerMockRecorder) DebugCtx(arg0 any, arg1 ...any) *gomock.Call

DebugCtx indicates an expected call of DebugCtx.

func (*MockLoggerMockRecorder) DebugCtxf

func (mr *MockLoggerMockRecorder) DebugCtxf(arg0, arg1 any, arg2 ...any) *gomock.Call

DebugCtxf indicates an expected call of DebugCtxf.

func (*MockLoggerMockRecorder) Debugf

func (mr *MockLoggerMockRecorder) Debugf(arg0 any, arg1 ...any) *gomock.Call

Debugf indicates an expected call of Debugf.

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(arg0 ...any) *gomock.Call

Error indicates an expected call of Error.

func (*MockLoggerMockRecorder) ErrorCtx

func (mr *MockLoggerMockRecorder) ErrorCtx(arg0 any, arg1 ...any) *gomock.Call

ErrorCtx indicates an expected call of ErrorCtx.

func (*MockLoggerMockRecorder) ErrorCtxf

func (mr *MockLoggerMockRecorder) ErrorCtxf(arg0, arg1 any, arg2 ...any) *gomock.Call

ErrorCtxf indicates an expected call of ErrorCtxf.

func (*MockLoggerMockRecorder) Errorf

func (mr *MockLoggerMockRecorder) Errorf(arg0 any, arg1 ...any) *gomock.Call

Errorf indicates an expected call of Errorf.

func (*MockLoggerMockRecorder) Fatal

func (mr *MockLoggerMockRecorder) Fatal(arg0 ...any) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockLoggerMockRecorder) FatalCtx

func (mr *MockLoggerMockRecorder) FatalCtx(arg0 any, arg1 ...any) *gomock.Call

FatalCtx indicates an expected call of FatalCtx.

func (*MockLoggerMockRecorder) FatalCtxf

func (mr *MockLoggerMockRecorder) FatalCtxf(arg0, arg1 any, arg2 ...any) *gomock.Call

FatalCtxf indicates an expected call of FatalCtxf.

func (*MockLoggerMockRecorder) Fatalf

func (mr *MockLoggerMockRecorder) Fatalf(arg0 any, arg1 ...any) *gomock.Call

Fatalf indicates an expected call of Fatalf.

func (*MockLoggerMockRecorder) Flush

func (mr *MockLoggerMockRecorder) Flush() *gomock.Call

Flush indicates an expected call of Flush.

func (*MockLoggerMockRecorder) HandlePanic

func (mr *MockLoggerMockRecorder) HandlePanic(arg0 any) *gomock.Call

HandlePanic indicates an expected call of HandlePanic.

func (*MockLoggerMockRecorder) HandlePanicWithCallback

func (mr *MockLoggerMockRecorder) HandlePanicWithCallback(arg0, arg1 any) *gomock.Call

HandlePanicWithCallback indicates an expected call of HandlePanicWithCallback.

func (*MockLoggerMockRecorder) Info

func (mr *MockLoggerMockRecorder) Info(arg0 ...any) *gomock.Call

Info indicates an expected call of Info.

func (*MockLoggerMockRecorder) InfoCtx

func (mr *MockLoggerMockRecorder) InfoCtx(arg0 any, arg1 ...any) *gomock.Call

InfoCtx indicates an expected call of InfoCtx.

func (*MockLoggerMockRecorder) InfoCtxf

func (mr *MockLoggerMockRecorder) InfoCtxf(arg0, arg1 any, arg2 ...any) *gomock.Call

InfoCtxf indicates an expected call of InfoCtxf.

func (*MockLoggerMockRecorder) Infof

func (mr *MockLoggerMockRecorder) Infof(arg0 any, arg1 ...any) *gomock.Call

Infof indicates an expected call of Infof.

func (*MockLoggerMockRecorder) Warning

func (mr *MockLoggerMockRecorder) Warning(arg0 ...any) *gomock.Call

Warning indicates an expected call of Warning.

func (*MockLoggerMockRecorder) WarningCtx

func (mr *MockLoggerMockRecorder) WarningCtx(arg0 any, arg1 ...any) *gomock.Call

WarningCtx indicates an expected call of WarningCtx.

func (*MockLoggerMockRecorder) WarningCtxf

func (mr *MockLoggerMockRecorder) WarningCtxf(arg0, arg1 any, arg2 ...any) *gomock.Call

WarningCtxf indicates an expected call of WarningCtxf.

func (*MockLoggerMockRecorder) Warningf

func (mr *MockLoggerMockRecorder) Warningf(arg0 any, arg1 ...any) *gomock.Call

Warningf indicates an expected call of Warningf.

func (*MockLoggerMockRecorder) WithModule

func (mr *MockLoggerMockRecorder) WithModule(arg0 any) *gomock.Call

WithModule indicates an expected call of WithModule.

Jump to

Keyboard shortcuts

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