Documentation
¶
Index ¶
- func RegisterLogger(ctx context.Context, logger Logger) context.Context
- type Logger
- type NullLogger
- func (l NullLogger) Debug(ctx context.Context, msg string, fields ...map[string]any)
- func (l NullLogger) Info(ctx context.Context, msg string, fields ...map[string]any)
- func (l NullLogger) SetField(ctx context.Context, key string, value any) context.Context
- func (l NullLogger) SubLogger(ctx context.Context, name string) (context.Context, Logger)
- func (l NullLogger) Trace(ctx context.Context, msg string, fields ...map[string]any)
- func (l NullLogger) Warn(ctx context.Context, msg string, fields ...map[string]any)
- type TfLogger
- func (l TfLogger) Debug(ctx context.Context, msg string, fields ...map[string]any)
- func (l TfLogger) Info(ctx context.Context, msg string, fields ...map[string]any)
- func (l TfLogger) SetField(ctx context.Context, key string, value any) context.Context
- func (l TfLogger) SubLogger(ctx context.Context, name string) (context.Context, Logger)
- func (l TfLogger) Trace(ctx context.Context, msg string, fields ...map[string]any)
- func (l TfLogger) Warn(ctx context.Context, msg string, fields ...map[string]any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
Warn(ctx context.Context, msg string, fields ...map[string]any)
Info(ctx context.Context, msg string, fields ...map[string]any)
Debug(ctx context.Context, msg string, fields ...map[string]any)
Trace(ctx context.Context, msg string, fields ...map[string]any)
SetField(ctx context.Context, key string, value any) context.Context
SubLogger(ctx context.Context, name string) (context.Context, Logger)
}
func RetrieveLogger ¶
type NullLogger ¶
type NullLogger struct {
}
Click to show internal directories.
Click to hide internal directories.