Skip to content

emperror/handler-logrus

Repository files navigation

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.