Documentation ¶
Index ¶
Constants ¶
View Source
const Noop = noop(0)
Noop logger doesn't log anything.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kv ¶
type Kv = map[string]interface{}
Kv is a helper type for structured logging fields usage.
func ValuesFromCtx ¶
ValuesFromCtx gets the log Key values from a context.
type Logger ¶
type Logger interface { Infof(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Debugf(format string, args ...interface{}) WithValues(values map[string]interface{}) Logger WithCtxValues(ctx context.Context) Logger SetValuesOnCtx(parent context.Context, values map[string]interface{}) context.Context }
Logger is the interface that the loggers used by the library will use.
Click to show internal directories.
Click to hide internal directories.