Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { Raw log.Logger Info func(...interface{}) error Debug func(...interface{}) error Error func(...interface{}) error }
Logger struct holds a log.Logger plus functions required for logging with different levels. They functions are syntactic sugar to avoid having to import "github.com/go-kit/kit/log/level" in every package that has to cast a log.
func AllowDebug ¶
AllowDebug receives a Logger and enables the debug logging level.
func MakeLogger ¶
MakeLogger receives a io.Writer and return a Logger struct.
Click to show internal directories.
Click to hide internal directories.