Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.3 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.3 KB

Logrus handler

GitHub Workflow Status Codecov Go Report Card Go Version go.dev reference

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.