Documentation
¶
Index ¶
- func AddHook(hook logrus.Hook)
- func Debug(args ...interface{})
- func DebugMode() bool
- 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 Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(args ...interface{})
- func Printf(args ...interface{})
- func Println(args ...interface{})
- func SetDebugMode(isEnabled bool)
- func SetLevelName(name string) error
- func SetOutput(output io.Writer)
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnln(args ...interface{})
- func WithContext(ctx context.Context) *logrus.Entry
- func WithError(err error) *logrus.Entry
- func WithField(key string, value interface{}) *logrus.Entry
- func WithFields(fields logrus.Fields) *logrus.Entry
- func WithTime(t time.Time) *logrus.Entry
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs a message at level Fatal then the process will exit with status set to 1.
func Fatalln ¶
func Fatalln(args ...interface{})
Fatalln logs a message at level Fatal then the process will exit with status set to 1.
func SetLevelName ¶
SetLevelName parses and sets the defaultLogger level.
func WithContext ¶
WithContext adds an context to log entry, using the value defined inside of context.
func WithFields ¶
WithFields adds multiple fields to entry.
Types ¶
Click to show internal directories.
Click to hide internal directories.