Skip to content
Error handler integration for Logur
Go Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.idea
.editorconfig
.gitignore
.golangci.yml
CHANGELOG.md
LICENSE
Makefile
README.md
example_go1_12_test.go
example_test.go
go.mod
go.sum
handler.go
handler_test.go

README.md

Logur error handler

CircleCI Go Report Card GolangCI GoDoc

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.

You can’t perform that action at this time.