Documentation ¶
Index ¶
- Constants
- func AddHook(hook logrus.Hook)
- 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 Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func RemoveHook(hook logrus.Hook)
- func StandardLogger() *logrus.Logger
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Logger
Constants ¶
View Source
const (
TimeFormat = "2006-01-02T15:04:05.000Z07:00"
)
Variables ¶
This section is empty.
Functions ¶
func RemoveHook ¶
func StandardLogger ¶
Types ¶
type Logger ¶
type Logger interface { WithField(key string, value interface{}) Logger WithFields(fields logrus.Fields) Logger WithContext(c *context.Context) Logger Data() logrus.Fields Time() time.Time Level() logrus.Level Logger() *logrus.Logger Message() string Info(args ...interface{}) Debug(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Panic(args ...interface{}) Fatal(args ...interface{}) Infof(format string, args ...interface{}) Debugf(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Panicf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) }
func CreateLogger ¶
func CreateLogger() Logger
func WithContext ¶
func WithFields ¶
Click to show internal directories.
Click to hide internal directories.