Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(fmt string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func Info(args ...interface{})
- func Infof(fmt string, args ...interface{})
- func Name() string
- func Set(w Wrapper)
- func Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(fmt string, args ...interface{})
Debugf is a convenient scaffold for debug logs
func Errorf ¶
func Errorf(fmt string, args ...interface{})
Errorf is a convenient scaffold for error logs
Types ¶
type Wrapper ¶
type Wrapper interface { Name() string Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debugf(fmt string, args ...interface{}) Infof(fmt string, args ...interface{}) Warnf(fmt string, args ...interface{}) Errorf(fmt string, args ...interface{}) }
Wrapper defines the interface used in project to make it able to integrate with different loggers
func NewLogrusWrapper ¶
func NewLogrusWrapper() Wrapper
NewLogrusWrapper creates a new wrapper for logrus
Click to show internal directories.
Click to hide internal directories.