logger

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLogger

type MockLogger struct {
	mock.Mock
}

MockLogger is a mock implementation of the logger interface

func NewMockLogger

func NewMockLogger() *MockLogger

NewMockLogger creates a new mock logger for testing

func (*MockLogger) Debug

func (m *MockLogger) Debug(msg string, keysAndValues ...interface{})

Debug logs a debug message

func (*MockLogger) Error

func (m *MockLogger) Error(msg string, err error, keysAndValues ...interface{})

Error logs an error message

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(msg string, err error, keysAndValues ...interface{})

Fatal logs a fatal message and exits

func (*MockLogger) Info

func (m *MockLogger) Info(msg string, keysAndValues ...interface{})

Info logs an info message

func (*MockLogger) Sync

func (m *MockLogger) Sync() error

Sync flushes any buffered log entries

func (*MockLogger) Warn

func (m *MockLogger) Warn(msg string, keysAndValues ...interface{})

Warn logs a warning message

func (*MockLogger) With

func (m *MockLogger) With(keysAndValues ...interface{}) interfaces.LoggerInterface

With returns a logger with additional fields

Jump to

Keyboard shortcuts

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