Documentation ¶
Index ¶
- func Middleware(logger *logrus.Logger, opts ...Option) echo.MiddlewareFunc
- type LoggerAdapter
- func (adapter LoggerAdapter) Debugj(j log.JSON)
- func (adapter LoggerAdapter) Errorj(j log.JSON)
- func (adapter LoggerAdapter) Fatalj(j log.JSON)
- func (adapter LoggerAdapter) Infoj(j log.JSON)
- func (adapter LoggerAdapter) Level() log.Lvl
- func (adapter LoggerAdapter) Output() io.Writer
- func (adapter LoggerAdapter) Panicj(j log.JSON)
- func (adapter LoggerAdapter) Prefix() string
- func (adapter LoggerAdapter) Printj(j log.JSON)
- func (adapter LoggerAdapter) SetHeader(string)
- func (adapter LoggerAdapter) SetLevel(log.Lvl)
- func (adapter LoggerAdapter) SetPrefix(p string)
- func (adapter LoggerAdapter) Warnj(j log.JSON)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Types ¶
type LoggerAdapter ¶
func NewAdapter ¶
func NewAdapter(logger *logrus.Logger) *LoggerAdapter
func (LoggerAdapter) Debugj ¶
func (adapter LoggerAdapter) Debugj(j log.JSON)
func (LoggerAdapter) Errorj ¶
func (adapter LoggerAdapter) Errorj(j log.JSON)
func (LoggerAdapter) Fatalj ¶
func (adapter LoggerAdapter) Fatalj(j log.JSON)
func (LoggerAdapter) Infoj ¶
func (adapter LoggerAdapter) Infoj(j log.JSON)
func (LoggerAdapter) Level ¶
func (adapter LoggerAdapter) Level() log.Lvl
func (LoggerAdapter) Output ¶
func (adapter LoggerAdapter) Output() io.Writer
func (LoggerAdapter) Panicj ¶
func (adapter LoggerAdapter) Panicj(j log.JSON)
func (LoggerAdapter) Prefix ¶
func (adapter LoggerAdapter) Prefix() string
Log format is completely determined by logrus
func (LoggerAdapter) Printj ¶
func (adapter LoggerAdapter) Printj(j log.JSON)
func (LoggerAdapter) SetHeader ¶
func (adapter LoggerAdapter) SetHeader(string)
Log format is completely determined by logrus
func (LoggerAdapter) SetLevel ¶
func (adapter LoggerAdapter) SetLevel(log.Lvl)
Ignore level as Logger shouldn't be configured by echo.Echo anyway
func (LoggerAdapter) SetPrefix ¶
func (adapter LoggerAdapter) SetPrefix(p string)
Log format is completely determined by logrus
func (LoggerAdapter) Warnj ¶
func (adapter LoggerAdapter) Warnj(j log.JSON)
type Option ¶
type Option func(*config)
func WithSkipper ¶
func WithSkipper(skipper middleware.Skipper) Option
Click to show internal directories.
Click to hide internal directories.