Documentation
¶
Index ¶
- Variables
- func Debug(ctx context.Context, msg string, pairs ...interface{})
- func Error(ctx context.Context, msg string, pairs ...interface{})
- func Fatal(ctx context.Context, msg interface{}, pairs ...interface{})
- func Info(ctx context.Context, msg string, pairs ...interface{})
- func WithLogger(ctx context.Context, logger Logger) context.Context
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Null is the null Logger instance.
Null = &nullLogger{}
)
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
// Debug logs a debug message.
Debug(msg string, ctx ...interface{})
// Info logs an informational message.
Info(msg string, ctx ...interface{})
// Error logs an error message.
Error(msg string, ctx ...interface{})
}
Logger represents an abstract logging object.
Click to show internal directories.
Click to hide internal directories.