log

package
v0.0.0-...-909a14f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogboek = NewLogboekLogger()
View Source
var DefaultNull = NewNullLogger()

Functions

This section is empty.

Types

type LogboekLogger

type LogboekLogger struct{}

func NewLogboekLogger

func NewLogboekLogger() *LogboekLogger

func (*LogboekLogger) Debug

func (l *LogboekLogger) Debug(ctx context.Context, format string, a ...interface{})

func (*LogboekLogger) Error

func (l *LogboekLogger) Error(ctx context.Context, format string, a ...interface{})

func (*LogboekLogger) Info

func (l *LogboekLogger) Info(ctx context.Context, format string, a ...interface{})

func (*LogboekLogger) InfoBlock

func (l *LogboekLogger) InfoBlock(ctx context.Context, format string, a ...interface{}) types.LogBlockInterface

func (*LogboekLogger) InfoProcess

func (l *LogboekLogger) InfoProcess(ctx context.Context, format string, a ...interface{}) types.LogProcessInterface

func (*LogboekLogger) Trace

func (l *LogboekLogger) Trace(ctx context.Context, format string, a ...interface{})

func (*LogboekLogger) TraceStruct

func (l *LogboekLogger) TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})

func (*LogboekLogger) Warn

func (l *LogboekLogger) Warn(ctx context.Context, format string, a ...interface{})

type Logger

type Logger interface {
	Trace(ctx context.Context, format string, a ...interface{})
	TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})
	Debug(ctx context.Context, format string, a ...interface{})
	Info(ctx context.Context, format string, a ...interface{})
	Warn(ctx context.Context, format string, a ...interface{})
	Error(ctx context.Context, format string, a ...interface{})
	InfoBlock(ctx context.Context, format string, a ...interface{}) types.LogBlockInterface
	InfoProcess(ctx context.Context, format string, a ...interface{}) types.LogProcessInterface
}
var Default Logger = DefaultLogboek

type NullLogger

type NullLogger struct{}

func NewNullLogger

func NewNullLogger() *NullLogger

func (*NullLogger) Debug

func (l *NullLogger) Debug(ctx context.Context, format string, a ...interface{})

func (*NullLogger) Error

func (l *NullLogger) Error(ctx context.Context, format string, a ...interface{})

func (*NullLogger) Info

func (l *NullLogger) Info(ctx context.Context, format string, a ...interface{})

func (*NullLogger) InfoBlock

func (l *NullLogger) InfoBlock(ctx context.Context, format string, a ...interface{}) types.LogBlockInterface

func (*NullLogger) InfoProcess

func (l *NullLogger) InfoProcess(ctx context.Context, format string, a ...interface{}) types.LogProcessInterface

func (*NullLogger) Trace

func (l *NullLogger) Trace(ctx context.Context, format string, a ...interface{})

func (*NullLogger) TraceStruct

func (l *NullLogger) TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})

func (*NullLogger) Warn

func (l *NullLogger) Warn(ctx context.Context, format string, a ...interface{})

Jump to

Keyboard shortcuts

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