Documentation ¶
Overview ¶
Package log defines the MQTT log interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fielder ¶
type Fielder interface {
Fields() map[string]interface{}
}
Fielder is the interface for anything that can have fields.
type Interface ¶
type Interface interface { Debug(msg string) Info(msg string) Warn(msg string) Error(msg string) Fatal(msg string) Debugf(msg string, v ...interface{}) Infof(msg string, v ...interface{}) Warnf(msg string, v ...interface{}) Errorf(msg string, v ...interface{}) Fatalf(msg string, v ...interface{}) WithField(string, interface{}) Interface WithFields(Fielder) Interface WithError(error) Interface }
Interface is the interface for logging.
var Noop Interface = &noop{}
Noop logger
func FromContext ¶
FromContext calls log.FromContext
Click to show internal directories.
Click to hide internal directories.