Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func NewLogger(cfg config.Provider) *logrus.Logger
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- func Warnln(args ...interface{})
- type Fields
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf package-level convenience method.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf package-level convenience method.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf package-level convenience method.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf package-level convenience method.
func Printf ¶
func Printf(format string, args ...interface{})
Printf package-level convenience method.
Types ¶
type Fields ¶
type Fields map[string]interface{}
Fields is a map string interface to define fields in the structured log
func (Fields) WithFields ¶
WithFields allow us to define fields in out structured logs
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Debugln(args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Errorln(args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Fatalln(args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Infoln(args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Panicln(args ...interface{}) Print(args ...interface{}) Printf(format string, args ...interface{}) Println(args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Warning(args ...interface{}) Warningf(format string, args ...interface{}) Warningln(args ...interface{}) Warnln(args ...interface{}) }
Logger defines a set of methods for writing application logs. Derived from and inspired by logrus.Entry.
func WithFields ¶
WithFields allow us to define fields in out structured logs
Click to show internal directories.
Click to hide internal directories.