Documentation
¶
Overview ¶
Package log provides a way to use the go-kit/log package without having to deal with their very-opiniated/crazy choice of returning an error all the time: https://github.com/go-kit/kit/issues/164
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultCaller adds a "caller" property DefaultCaller = gklog.Caller(4) // DefaultTimestampUTC adds a "ts" property DefaultTimestampUTC = gklog.DefaultTimestampUTC )
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
// Log(keyvals ...interface{})
Debug(keyvals ...interface{})
Info(keyvals ...interface{})
Warn(keyvals ...interface{})
Error(keyvals ...interface{})
With(keyvals ...interface{}) Logger
}
Logger interface
func NewGKLogger ¶
NewGKLogger creates a logger based on go-kit logs
Click to show internal directories.
Click to hide internal directories.