Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.34 KB

README.md

File metadata and controls

50 lines (31 loc) · 1.34 KB

Logur error handler

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

Error handler using Logur.

Installation

go get emperror.dev/handler/logur

Usage

package main

import (
	"github.com/goph/logur/adapters/logrusadapter"
	"github.com/sirupsen/logrus"

	logurhandler "emperror.dev/handler/logur"
)

func main() {
	logger := logrusadapter.New(logrus.New())
	handler := logurhandler.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.