Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fsouza/slognil
nil (discard) handler for slog
https://github.com/fsouza/slognil
Last synced: 3 months ago
JSON representation
nil (discard) handler for slog
- Host: GitHub
- URL: https://github.com/fsouza/slognil
- Owner: fsouza
- License: isc
- Created: 2022-10-22T13:43:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-14T20:56:23.000Z (5 months ago)
- Last Synced: 2024-08-14T22:45:00.379Z (5 months ago)
- Language: Go
- Homepage: https://pkg.go.dev/github.com/fsouza/slognil
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slognil
Discard handler for slog. Want do discard all logs? Use this handler, without
bothering with levels (useful for tests):```go
logger := slognil.NewLogger()
```