log

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
	// contains filtered or unexported fields
}

Mock stands for a mocked log.

func NewEmptyLogMock

func NewEmptyLogMock() *Mock

func NewMockLog

func NewMockLog() *Mock

NewMockLogger returns an instance of Mock with default expectations set.

func NewMockLogWithContext

func NewMockLogWithContext(ctx string) *Mock

func NewSilentMockLog

func NewSilentMockLog() *Mock

NewSilentMockLogger returns an instance of Mock with default expectations set.

func (*Mock) Close

func (_m *Mock) Close()

Close mocks the Close function.

func (*Mock) Closed

func (_m *Mock) Closed() bool

func (*Mock) Critical

func (_m *Mock) Critical(v ...interface{}) error

Critical mocks the Critical function.

func (*Mock) Criticalf

func (_m *Mock) Criticalf(format string, params ...interface{}) error

Criticalf mocks the Criticalf function.

func (*Mock) Debug

func (_m *Mock) Debug(v ...interface{})

Debug mocks the Debug function.

func (*Mock) Debugf

func (_m *Mock) Debugf(format string, params ...interface{})

Debugf mocks the Debugf function.

func (*Mock) Error

func (_m *Mock) Error(v ...interface{}) error

Error mocks the Error function.

func (*Mock) Errorf

func (_m *Mock) Errorf(format string, params ...interface{}) error

Errorf mocks the Errorf function.

func (*Mock) Flush

func (_m *Mock) Flush()

Flush mocks the Flush function.

func (*Mock) Info

func (_m *Mock) Info(v ...interface{})

Info mocks the Info function.

func (*Mock) Infof

func (_m *Mock) Infof(format string, params ...interface{})

Infof mocks the Infof function.

func (*Mock) Log

func (_m *Mock) Log(i ...interface{})

func (*Mock) Trace

func (_m *Mock) Trace(v ...interface{})

Trace mocks the Trace function.

func (*Mock) Tracef

func (_m *Mock) Tracef(format string, params ...interface{})

Tracef mocks the Tracef function.

func (*Mock) Warn

func (_m *Mock) Warn(v ...interface{}) error

Warn mocks the Warn function.

func (*Mock) Warnf

func (_m *Mock) Warnf(format string, params ...interface{}) error

Warnf mocks the Warnf function.

func (*Mock) WithContext

func (_m *Mock) WithContext(context ...string) (contextLogger log.T)

func (*Mock) WriteEvent

func (_m *Mock) WriteEvent(eventType string, agentVersion string, content string)

Jump to

Keyboard shortcuts

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