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
- Host: GitHub
- URL: https://github.com/emperror/handler-logrus
- Owner: emperror
- License: mit
- Created: 2019-07-03T15:20:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T20:38:43.000Z (almost 6 years ago)
- Last Synced: 2025-11-08T18:02:19.292Z (6 months ago)
- Topics: error-handler, logging, logrus
- Language: Makefile
- Homepage: https://emperror.dev/handler/logrus
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Logrus handler
[](https://github.com/emperror/handler-logrus/actions?query=workflow%3ACI)
[](https://codecov.io/gh/emperror/handler-logrus)
[](https://goreportcard.com/report/emperror.dev/handler/logrus)

[](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.