An open API service indexing awesome lists of open source software.

https://github.com/emperror/handler-logrus

Error handler integration for Logrus
https://github.com/emperror/handler-logrus

error-handler logging logrus

Last synced: about 1 month ago
JSON representation

Error handler integration for Logrus

Awesome Lists containing this project

README

          

# Logrus handler

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/emperror/handler-logrus/CI?style=flat-square)](https://github.com/emperror/handler-logrus/actions?query=workflow%3ACI)
[![Codecov](https://img.shields.io/codecov/c/github/emperror/handler-logrus?style=flat-square)](https://codecov.io/gh/emperror/handler-logrus)
[![Go Report Card](https://goreportcard.com/badge/emperror.dev/handler/logrus?style=flat-square)](https://goreportcard.com/report/emperror.dev/handler/logrus)
![Go Version](https://img.shields.io/badge/go%20version-%3E=1.12-61CFDD.svg?style=flat-square)
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/mod/emperror.dev/handler/logrus)

**Error handler integration for [Logrus](https://github.com/sirupsen/logrus).**

## Installation

```bash
go get emperror.dev/handler/logrus
```

## Usage

```go
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:

```bash
$ make check
```

## License

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