Versions in this module Expand all Collapse all v1 v1.1.0 Nov 20, 2017 Changes in this version + func ContextWithLogger(ctx context.Context, logger Logger) context.Context + func Debug(str string, data interface{}) error + func Error(str string, data interface{}) error + func Info(str string, data interface{}) error + func Log(logLevel LogLevel, str string, data interface{}) error + func Warning(str string, data interface{}) error type Logger + func LoggerFromContextOrDefault(ctx context.Context) Logger v1.0.0 Oct 5, 2017 Changes in this version + const LogLevelDebug + const LogLevelError + const LogLevelInfo + const LogLevelWarning + var DefaultLogger = Logger + type LogLevel uint + type Logger struct + func (l Logger) Debug(str string, data interface{}) error + func (l Logger) Error(str string, data interface{}) error + func (l Logger) Info(str string, data interface{}) error + func (l Logger) Log(logLevel LogLevel, str string, data interface{}) error + func (l Logger) Warning(str string, data interface{}) error + func (l Logger) WithContext(ctx context.Context) Logger + func (l Logger) WithContextKey(contextKey interface{}, messageKey string) Logger + func (l Logger) WithLogLevel(logLevel LogLevel) Logger + func (l Logger) WithWriter(w io.Writer) Logger