Documentation
¶
Index ¶
- Constants
- 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 Logger() *logrus.Logger
- func New(level string, format string) logrus.FieldLogger
- 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 SetLogger(fieldLogger logrus.FieldLogger)
- 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{})
- func WithError(err error) *logrus.Entry
- func WithField(key string, value interface{}) *logrus.Entry
- func WithFields(fields logrus.Fields) *logrus.Entry
Constants ¶
View Source
const ( DefaultLevel = "info" DefaultFormat = "text" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(level string, format string) logrus.FieldLogger
New creates a new Logger. Configuration should be set by changing level (eg.: panic, fatal, error, warn, info, debug) format (eg.: text, json).
func SetLogger ¶
func SetLogger(fieldLogger logrus.FieldLogger)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.