Categoryemperror.dev/handler/logrus
modulepackage
0.3.1
Repository: https://github.com/emperror/handler-logrus.git
Documentation: pkg.go.dev

# README

Logrus handler

GitHub Workflow Status Codecov Go Report Card GolangCI Go Version GoDoc

Error handler integration for Logrus.

Installation

go get emperror.dev/handler/logrus

Usage

package main

import (
	"github.com/sirupsen/logrus"

	logrushandler "emperror.dev/handler/logrus"
)

func main() {
	logger := logrus.New()
	handler := logrushandler.New(logger)
}

Development

When all coding and testing is done, please run the test suite:

$ make check

License

The MIT License (MIT). Please see License File for more information.

# Functions

New creates a new handler.

# Structs

Handler logs errors using Logrus.