logger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	logrus.Entry
}

Logger ...

func New

func New() *Logger

New creates new logger instance

func (*Logger) FatalIfError added in v0.0.2

func (l *Logger) FatalIfError(err error)

func (*Logger) Middleware

func (l *Logger) Middleware(next http.Handler) http.Handler

Middleware returns http logging middleware

func (*Logger) WithContext

func (l *Logger) WithContext(ctx context.Context) *logrus.Entry

WithContext creates new logger with http request context

Jump to

Keyboard shortcuts

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