github.com/meowgorithm/babylogger
Package babylogger is a simple HTTP logging middleware. It works with any multiplexer compatible with the Go standard library. When a terminal is present it will log using nice colors. When the output is not in a terminal (for example in logs) ANSI escape sequences (read: colors) will be stripped from the output. Also note that for accurate response time logging Babylogger should be the first middleware called. Windows support is not currently implemented, however it would be trivial enough with the help of a couple packages from Mattn: http://github.com/mattn/go-isatty and https://github.com/mattn/go-colorable Example using the standard library: Example with Goji:
proxy.golang.org
v1.2.1
almost 3 years ago
7
6
8
github.com/Natouche68/notes v0.0.0-20240112181254-49ccdd0b9bb9
Take notes right from your terminal1 version - Latest release: about 2 years ago - 0 stars on GitHub
github.com/developing-today-forks/charm v0.12.6
The Charm Tool and Library 🌟37 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/charmbracelet/charm v0.12.6
The Charm Tool and Library 🌟37 versions - Latest release: over 2 years ago - 64 dependent packages - 235 dependent repositories - 1,800 stars on GitHub
github.com/aakarim/pland v0.1.4
5 versions - Latest release: over 3 years ago - 0 stars on GitHubgithub.com/rubiojr/tavern v0.1.0
A few serve, the rest enjoy the free drinks1 version - Latest release: almost 4 years ago - 9 stars on GitHub
github.com/rubiojr/charm v0.9.1
The Charm Tool and Library 🌟23 versions - Latest release: over 4 years ago - 0 stars on GitHub
Past Dependents
Check this option to include packages that no longer depend on this package in their latest version but previously did.
Filter
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/meowgorithm/babylogger
spec |
| License | MIT |
| Namespace | github.com/meowgorithm |
| First Release | over 7 years ago |
| Last Synced | 25 days ago |