Documentation ¶
Index ¶
- Variables
- type LogboekLogger
- func (l *LogboekLogger) Debug(ctx context.Context, format string, a ...interface{})
- func (l *LogboekLogger) Error(ctx context.Context, format string, a ...interface{})
- func (l *LogboekLogger) Info(ctx context.Context, format string, a ...interface{})
- func (l *LogboekLogger) InfoBlock(ctx context.Context, format string, a ...interface{}) types.LogBlockInterface
- func (l *LogboekLogger) InfoProcess(ctx context.Context, format string, a ...interface{}) types.LogProcessInterface
- func (l *LogboekLogger) Trace(ctx context.Context, format string, a ...interface{})
- func (l *LogboekLogger) TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})
- func (l *LogboekLogger) Warn(ctx context.Context, format string, a ...interface{})
- type Logger
- type NullLogger
- func (l *NullLogger) Debug(ctx context.Context, format string, a ...interface{})
- func (l *NullLogger) Error(ctx context.Context, format string, a ...interface{})
- func (l *NullLogger) Info(ctx context.Context, format string, a ...interface{})
- func (l *NullLogger) InfoBlock(ctx context.Context, format string, a ...interface{}) types.LogBlockInterface
- func (l *NullLogger) InfoProcess(ctx context.Context, format string, a ...interface{}) types.LogProcessInterface
- func (l *NullLogger) Trace(ctx context.Context, format string, a ...interface{})
- func (l *NullLogger) TraceStruct(ctx context.Context, obj interface{}, format string, a ...interface{})
- func (l *NullLogger) Warn(ctx context.Context, format string, a ...interface{})
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{})
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{})
Click to show internal directories.
Click to hide internal directories.