Documentation ¶
Index ¶
- func Config(i Logger)
- func Log(c context.Context, l Level, message string, vals ...Pair)
- func WithLevel(c context.Context, l Level) context.Context
- func WithValues(c context.Context, vals ...Pair) context.Context
- type DefaultLogger
- type Formatter
- type FormatterFunc
- type Level
- type Logger
- type LoggerFunc
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultLogger ¶
func (DefaultLogger) Log ¶
func (dl DefaultLogger) Log(vals ...interface{}) error
type FormatterFunc ¶
type FormatterFunc func(vals ...interface{}) string
func (FormatterFunc) Format ¶
func (ff FormatterFunc) Format(vals ...interface{}) string
type LoggerFunc ¶
type LoggerFunc func(vals ...interface{}) error
func (LoggerFunc) Log ¶
func (lf LoggerFunc) Log(vals ...interface{}) error
Click to show internal directories.
Click to hide internal directories.