Documentation ¶
Index ¶
- func ContextWithLogger(ctx context.Context, l Logger) context.Context
- func Debug(ctx context.Context, args ...interface{})
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Error(ctx context.Context, args ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Fatal(ctx context.Context, args ...interface{})
- func Fatalf(ctx context.Context, format string, args ...interface{})
- func Info(ctx context.Context, args ...interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func Panic(ctx context.Context, args ...interface{})
- func Panicf(ctx context.Context, format string, args ...interface{})
- func Trace(ctx context.Context, args ...interface{})
- func Tracef(ctx context.Context, format string, args ...interface{})
- func Warnf(ctx context.Context, format string, args ...interface{})
- func Warning(ctx context.Context, args ...interface{})
- func Warningf(ctx context.Context, format string, args ...interface{})
- func WithError(ctx context.Context, err error) *logrus.Entry
- func WithField(ctx context.Context, key string, value interface{}) *logrus.Entry
- func WithFields(ctx context.Context, fields logrus.Fields) *logrus.Entry
- func WithTime(ctx context.Context, t time.Time) *logrus.Entry
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithLogger ¶
ContextWithLogger adds logger to context
Types ¶
type Logger ¶
type Logger interface { SetLevel(level logrus.Level) GetLevel() logrus.Level WithField(key string, value interface{}) *logrus.Entry WithFields(fields logrus.Fields) *logrus.Entry WithError(err error) *logrus.Entry WithContext(ctx context.Context) *logrus.Entry WithTime(t time.Time) *logrus.Entry Tracef(format string, args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) Panicf(format string, args ...interface{}) Trace(args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Print(args ...interface{}) Warning(args ...interface{}) Error(args ...interface{}) Fatal(args ...interface{}) Panic(args ...interface{}) }
Click to show internal directories.
Click to hide internal directories.