Documentation
¶
Index ¶
- Constants
- 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 Logrus() *logrus.Logger
- func NewLogrus()
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func SetLevel(level logrus.Level)
- func SetServiceInfo(service string)
- func SetSlackHook(webhook string, level logrus.Level)
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, 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(f Fields) *logrus.Entry
- func Writer() *io.PipeWriter
- type Fields
- type Level
- type Logger
Constants ¶
View Source
const ( TraceLevel = logrus.TraceLevel DebugLevel = logrus.DebugLevel InfoLevel = logrus.InfoLevel ErrorLevel = logrus.ErrorLevel WarnLevel = logrus.WarnLevel FatalLevel = logrus.FatalLevel PainLevel = logrus.PanicLevel )
log level
Variables ¶
This section is empty.
Functions ¶
func Fatalf ¶ added in v0.10.0
func Fatalf(format string, args ...interface{})
Fatalf - format logger with fatal
func SetSlackHook ¶ added in v0.1.1
SetSlackHook -
func WithContext ¶ added in v0.1.1
WithContext -
Types ¶
type Logger ¶ added in v0.10.0
type Logger interface { Fatal(args ...interface{}) Warn(args ...interface{}) Info(args ...interface{}) Error(args ...interface{}) Fatalf(format string, args ...interface{}) Warnf(format string, args ...interface{}) Infof(format string, args ...interface{}) Errorf(format string, args ...interface{}) }
Logger -
Click to show internal directories.
Click to hide internal directories.