Top 2.2% dependent packages on proxy.golang.org
Top 1.8% dependent repos on proxy.golang.org
Top 1.9% docker downloads on proxy.golang.org
proxy.golang.org : 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:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/meowgorithm/babylogger
Keywords:
go
, goji
, logging
, middleware
License: MIT
Latest release: about 2 years ago
First release: over 6 years ago
Namespace: github.com/meowgorithm
Dependent packages: 6
Dependent repositories: 8
Stars: 11 on GitHub
Forks: 0 on GitHub
Docker dependents: 2
Docker downloads: 17
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago