https://github.com/mattes/errorstats
Store counters for hashed errors
https://github.com/mattes/errorstats
Last synced: 9 months ago
JSON representation
Store counters for hashed errors
- Host: GitHub
- URL: https://github.com/mattes/errorstats
- Owner: mattes
- License: mit
- Created: 2019-11-09T23:30:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-10T07:31:35.000Z (about 6 years ago)
- Last Synced: 2025-02-10T09:13:03.679Z (11 months ago)
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# errorstats [](https://godoc.org/github.com/mattes/errorstats)
Store counters for hashed errors.
1. Create a new `errorstats.New()` instance.
2. `SetEncoder(T, EncoderFunc)` to encode/hash error into human read-able string.
3. `Log(T)` error (or any other type).
4. Print counters with `Pretty()`.
See [example](https://godoc.org/github.com/mattes/errorstats#example-Stats-JSON).