https://github.com/cag/color-logger
Logger middleware with color
https://github.com/cag/color-logger
Last synced: about 1 year ago
JSON representation
Logger middleware with color
- Host: GitHub
- URL: https://github.com/cag/color-logger
- Owner: cag
- License: mit
- Created: 2016-09-28T00:29:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-28T00:52:42.000Z (over 9 years ago)
- Last Synced: 2025-03-12T05:02:32.738Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cologroni
Negroni logger middleware with color. It also doesn't make a log line when response starts.
## Usage
```go
import "github.com/cag/cologroni"
func main() {
...
n := negroni.New(
cologroni.New(),
negroni.NewRecovery(),
negroni.NewStatic(http.Dir("public")))
...
}
```