logmock

package
v0.0.0-...-77ecf91 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	DebugFn     func(args ...interface{})
	AlertFn     func(args ...interface{})
	InfoFn      func(args ...interface{})
	NoticeFn    func(args ...interface{})
	WarningFn   func(args ...interface{})
	ErrorFn     func(args ...interface{})
	EmergencyFn func(args ...interface{})
	CriticalFn  func(args ...interface{})

	DebugfFn     func(format string, args ...interface{})
	AlertfFn     func(format string, args ...interface{})
	InfofFn      func(format string, args ...interface{})
	NoticefFn    func(format string, args ...interface{})
	WarningfFn   func(format string, args ...interface{})
	ErrorfFn     func(format string, args ...interface{})
	EmergencyfFn func(format string, args ...interface{})
	CriticalfFn  func(format string, args ...interface{})

	WithFieldFn  func(key string, value interface{}) logger.Entry
	WithFieldsFn func(fields logger.Fields) logger.Entry
}

func (*Entry) Alert

func (e *Entry) Alert(args ...interface{})

func (*Entry) Alertf

func (e *Entry) Alertf(format string, args ...interface{})

func (*Entry) Critical

func (e *Entry) Critical(args ...interface{})

func (*Entry) Criticalf

func (e *Entry) Criticalf(format string, args ...interface{})

func (*Entry) Debug

func (e *Entry) Debug(args ...interface{})

func (*Entry) Debugf

func (e *Entry) Debugf(format string, args ...interface{})

func (*Entry) Emergency

func (e *Entry) Emergency(args ...interface{})

func (*Entry) Emergencyf

func (e *Entry) Emergencyf(format string, args ...interface{})

func (*Entry) Error

func (e *Entry) Error(args ...interface{})

func (*Entry) Errorf

func (e *Entry) Errorf(format string, args ...interface{})

func (*Entry) Info

func (e *Entry) Info(args ...interface{})

func (*Entry) Infof

func (e *Entry) Infof(format string, args ...interface{})

func (*Entry) Notice

func (e *Entry) Notice(args ...interface{})

func (*Entry) Noticef

func (e *Entry) Noticef(format string, args ...interface{})

func (*Entry) Warning

func (e *Entry) Warning(args ...interface{})

func (*Entry) Warningf

func (e *Entry) Warningf(format string, args ...interface{})

func (*Entry) WithField

func (e *Entry) WithField(key string, value interface{}) logger.Entry

func (*Entry) WithFields

func (e *Entry) WithFields(fields logger.Fields) logger.Entry

type Factory

type Factory struct {
	LoggerFn func(ctx context.Context) Entry
}

func (Factory) Logger

func (p Factory) Logger(ctx context.Context) Entry

Jump to

Keyboard shortcuts

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