logruskit

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFields

func GetFields(ctx context.Context) logrus.Fields

GetFields get fields from context

func PutField

func PutField(c *context.Context, key string, value interface{})

PutField key value to context

Types

type EchoLogrus

type EchoLogrus struct {
	*logrus.Logger
	// contains filtered or unexported fields
}

EchoLogrus is implementation of echo Logger

func EchoLogger

func EchoLogger(logger *logrus.Logger) *EchoLogrus

EchoLogger logrus logger in echo log interface

func (*EchoLogrus) Debugj

func (l *EchoLogrus) Debugj(j log.JSON)

Debugj debug json log

func (*EchoLogrus) Errorj

func (l *EchoLogrus) Errorj(j log.JSON)

Errorj error json log

func (*EchoLogrus) Fatalj

func (l *EchoLogrus) Fatalj(j log.JSON)

Fatalj fatal json log

func (*EchoLogrus) Infoj

func (l *EchoLogrus) Infoj(j log.JSON)

Infoj info json log

func (*EchoLogrus) Level

func (l *EchoLogrus) Level() log.Lvl

Level returns logger level

func (*EchoLogrus) Output

func (l *EchoLogrus) Output() io.Writer

Output logger output func

func (*EchoLogrus) Panicj

func (l *EchoLogrus) Panicj(j log.JSON)

Panicj panic json log

func (*EchoLogrus) Prefix

func (l *EchoLogrus) Prefix() string

Prefix of echo logrus

func (*EchoLogrus) Printj

func (l *EchoLogrus) Printj(j log.JSON)

Printj print json log

func (*EchoLogrus) SetHeader

func (l *EchoLogrus) SetHeader(string)

SetHeader to set header (NOT SUPPORTED)

func (*EchoLogrus) SetLevel

func (l *EchoLogrus) SetLevel(lvl log.Lvl)

SetLevel set level to logger from given log.Lvl

func (*EchoLogrus) SetPrefix

func (l *EchoLogrus) SetPrefix(prefix string)

SetPrefix to set prefix

func (*EchoLogrus) Warnj

func (l *EchoLogrus) Warnj(j log.JSON)

Warnj warning json log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL