logger

package
v0.0.0-...-e878d2f Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logger is a package to simplify logging in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware() echo.MiddlewareFunc

Middleware provides a echo.MiddlewareFunc to use in echo server with logrus.

Types

type Logger

type Logger interface {
	// log.FieldLogger composes Logger with log.FieldLogger from logrus
	log.FieldLogger
}

Logger is a interface who provides methods to manage logs.

func NewLogger

func NewLogger() Logger

NewLogger returns a new instance of Logger.

Jump to

Keyboard shortcuts

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