Documentation ¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Logf(level logrus.Level, format string, args ...interface{})
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func SetLevel(level string)
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- func WithDefaultFields(key string, value interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = Wrap(logrus.WithFields(logrus.Fields{}))
Log global logger
Functions ¶
func WithDefaultFields ¶
func WithDefaultFields(key string, value interface{})
WithDefaultFields add default fields to logger
Types ¶
type Logger ¶
Logger implements log.Logger
func LoggerWithSpan ¶
LoggerWithSpan spwan new logger with trace span
Click to show internal directories.
Click to hide internal directories.