Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(args ...interface{})
- func Infof(format string, v ...interface{})
- func NewContext(ctx context.Context, logger Logger) context.Context
- func Panic(args ...interface{})
- func Panicf(format string, v ...interface{})
- func Trace(args ...interface{})
- func Tracef(format string, v ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, v ...interface{})
- type Config
- type Fields
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
NewContext return a new logger context
Types ¶
type Logger ¶
type Logger interface { Infof(string, ...interface{}) Debugf(string, ...interface{}) Tracef(string, ...interface{}) Warnf(string, ...interface{}) Errorf(string, ...interface{}) Fatalf(string, ...interface{}) Panicf(string, ...interface{}) Info(...interface{}) Debug(...interface{}) Trace(...interface{}) Warn(...interface{}) Error(...interface{}) Fatal(...interface{}) Panic(...interface{}) WithField(key string, val interface{}) Logger WithFields(fields Fields) Logger }
func WithContext ¶
WithContext return a logger from the given context
func WithFields ¶
WithFields return a new logger entry with fields
Click to show internal directories.
Click to hide internal directories.