Documentation ¶
Index ¶
- func Debug(i ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugj(j log.JSON)
- func Error(i ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorj(j log.JSON)
- func Fatal(i ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalj(j log.JSON)
- func Info(i ...interface{})
- func Infof(format string, args ...interface{})
- func Infoj(j log.JSON)
- func LogrusLogger() echo.MiddlewareFunc
- func Panic(i ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicj(j log.JSON)
- func Print(i ...interface{})
- func Printf(format string, i ...interface{})
- func Printj(j log.JSON)
- func Warn(i ...interface{})
- func Warnf(format string, args ...interface{})
- func Warnj(j log.JSON)
- type EchoLogger
- func (l *EchoLogger) Debug(i ...interface{})
- func (l *EchoLogger) Debugf(format string, args ...interface{})
- func (l *EchoLogger) Debugj(j log.JSON)
- func (l *EchoLogger) Error(i ...interface{})
- func (l *EchoLogger) Errorf(format string, args ...interface{})
- func (l *EchoLogger) Errorj(j log.JSON)
- func (l *EchoLogger) Fatal(i ...interface{})
- func (l *EchoLogger) Fatalf(format string, args ...interface{})
- func (l *EchoLogger) Fatalj(j log.JSON)
- func (l *EchoLogger) Formatter() logrus.Formatter
- func (l *EchoLogger) Info(i ...interface{})
- func (l *EchoLogger) Infof(format string, args ...interface{})
- func (l *EchoLogger) Infoj(j log.JSON)
- func (l *EchoLogger) Level() log.Lvl
- func (l *EchoLogger) Output() io.Writer
- func (l *EchoLogger) Panic(i ...interface{})
- func (l *EchoLogger) Panicf(format string, args ...interface{})
- func (l *EchoLogger) Panicj(j log.JSON)
- func (l *EchoLogger) Prefix() string
- func (l *EchoLogger) Print(i ...interface{})
- func (l *EchoLogger) Printf(format string, args ...interface{})
- func (l *EchoLogger) Printj(j log.JSON)
- func (l *EchoLogger) SetFormatter(formatter logrus.Formatter)
- func (l *EchoLogger) SetHeader(h string)
- func (l *EchoLogger) SetLevel(v log.Lvl)
- func (l *EchoLogger) SetOutput(w io.Writer)
- func (l *EchoLogger) SetPrefix(p string)
- func (l *EchoLogger) Warn(i ...interface{})
- func (l *EchoLogger) Warnf(format string, args ...interface{})
- func (l *EchoLogger) Warnj(j log.JSON)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf output format message of debug level
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf output format message of error level
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf output format message of fatal level
func Infof ¶
func Infof(format string, args ...interface{})
Infof output format message of info level
func LogrusLogger ¶
func LogrusLogger() echo.MiddlewareFunc
Logger returns a middleware that logs HTTP requests.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf output format message of panic level
func Printf ¶
func Printf(format string, i ...interface{})
Printf output format message of print level
Types ¶
type EchoLogger ¶
EchoLogger extend logrus.EchoLogger
func (*EchoLogger) Debug ¶
func (l *EchoLogger) Debug(i ...interface{})
Debug output message of debug level
func (*EchoLogger) Debugf ¶
func (l *EchoLogger) Debugf(format string, args ...interface{})
Debugf output format message of debug level
func (*EchoLogger) Debugj ¶
func (l *EchoLogger) Debugj(j log.JSON)
Debugj output message of debug level
func (*EchoLogger) Error ¶
func (l *EchoLogger) Error(i ...interface{})
Error output message of error level
func (*EchoLogger) Errorf ¶
func (l *EchoLogger) Errorf(format string, args ...interface{})
Errorf output format message of error level
func (*EchoLogger) Errorj ¶
func (l *EchoLogger) Errorj(j log.JSON)
Errorj output json of error level
func (*EchoLogger) Fatal ¶
func (l *EchoLogger) Fatal(i ...interface{})
Fatal output message of fatal level
func (*EchoLogger) Fatalf ¶
func (l *EchoLogger) Fatalf(format string, args ...interface{})
Fatalf output format message of fatal level
func (*EchoLogger) Fatalj ¶
func (l *EchoLogger) Fatalj(j log.JSON)
Fatalj output json of fatal level
func (*EchoLogger) Formatter ¶
func (l *EchoLogger) Formatter() logrus.Formatter
Formatter return logger formatter
func (*EchoLogger) Info ¶
func (l *EchoLogger) Info(i ...interface{})
Info output message of info level
func (*EchoLogger) Infof ¶
func (l *EchoLogger) Infof(format string, args ...interface{})
Infof output format message of info level
func (*EchoLogger) Panic ¶
func (l *EchoLogger) Panic(i ...interface{})
Panic output message of panic level
func (*EchoLogger) Panicf ¶
func (l *EchoLogger) Panicf(format string, args ...interface{})
Panicf output format message of panic level
func (*EchoLogger) Panicj ¶
func (l *EchoLogger) Panicj(j log.JSON)
Panicj output json of panic level
func (*EchoLogger) Prefix ¶
func (l *EchoLogger) Prefix() string
Prefix return logger prefix This function do nothing
func (*EchoLogger) Print ¶
func (l *EchoLogger) Print(i ...interface{})
Print output message of print level
func (*EchoLogger) Printf ¶
func (l *EchoLogger) Printf(format string, args ...interface{})
Printf output format message of print level
func (*EchoLogger) Printj ¶
func (l *EchoLogger) Printj(j log.JSON)
Printj output json of print level
func (*EchoLogger) SetFormatter ¶
func (l *EchoLogger) SetFormatter(formatter logrus.Formatter)
SetFormatter logger formatter Only support logrus formatter
func (*EchoLogger) SetHeader ¶
func (l *EchoLogger) SetHeader(h string)
SetHeader logger header Managed by Logrus itself This function do nothing
func (*EchoLogger) SetOutput ¶
func (l *EchoLogger) SetOutput(w io.Writer)
SetOutput logger io.Writer
func (*EchoLogger) SetPrefix ¶
func (l *EchoLogger) SetPrefix(p string)
SetPrefix logger prefix This function do nothing
func (*EchoLogger) Warn ¶
func (l *EchoLogger) Warn(i ...interface{})
Warn output message of warn level
func (*EchoLogger) Warnf ¶
func (l *EchoLogger) Warnf(format string, args ...interface{})
Warnf output format message of warn level