Documentation ¶
Index ¶
- func GetFields(ctx context.Context) logrus.Fields
- func PutField(c *context.Context, key string, value interface{})
- type EchoLogrus
- func (e *EchoLogrus) Debugj(j log.JSON)
- func (e *EchoLogrus) Errorj(j log.JSON)
- func (e *EchoLogrus) Fatalj(j log.JSON)
- func (e *EchoLogrus) Infoj(j log.JSON)
- func (e *EchoLogrus) Level() log.Lvl
- func (e *EchoLogrus) Output() io.Writer
- func (e *EchoLogrus) Panicj(j log.JSON)
- func (e *EchoLogrus) Prefix() string
- func (e *EchoLogrus) Printj(j log.JSON)
- func (e EchoLogrus) SetHeader(h string)
- func (e *EchoLogrus) SetLevel(lvl log.Lvl)
- func (e *EchoLogrus) SetPrefix(prefix string)
- func (e *EchoLogrus) Warnj(j log.JSON)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EchoLogrus ¶
EchoLogrus is an implementation of echo logger
func EchoLogger ¶
func EchoLogger(logger *logrus.Logger) *EchoLogrus
EchoLogger logrus logger in echo log interface
func (*EchoLogrus) SetLevel ¶
func (e *EchoLogrus) SetLevel(lvl log.Lvl)
SetLevel set level to logger from given log.Lvl
func (*EchoLogrus) SetPrefix ¶
func (e *EchoLogrus) SetPrefix(prefix string)
SetPrefix set prefix of EchoLogrus
Click to show internal directories.
Click to hide internal directories.