https://github.com/dundunlibs/httplog
HTTP logger for Golang's net/http
https://github.com/dundunlibs/httplog
go http logger
Last synced: 6 months ago
JSON representation
HTTP logger for Golang's net/http
- Host: GitHub
- URL: https://github.com/dundunlibs/httplog
- Owner: dundunlibs
- License: mit
- Created: 2023-04-08T15:42:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T04:04:07.000Z (almost 3 years ago)
- Last Synced: 2025-06-11T05:48:45.323Z (10 months ago)
- Topics: go, http, logger
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# httplog
[](https://github.com/dundunlabs/httplog/releases)
[](https://github.com/dundunlabs/httplog/blob/main/LICENSE)
[](https://makeapullrequest.com)
HTTP logger for Golang's [net/http](https://pkg.go.dev/net/http)
## Installation
```bash
go get -u github.com/dundunlabs/httplog
```
## Usage
```go
package main
import (
"net/http"
"github.com/dundunlabs/httplog"
)
func main() {
handler := httplog.NewHandler(http.DefaultServeMux)
http.ListenAndServe(":8080", handler)
}
```
## License
[MIT](https://github.com/dundunlabs/httplog/blob/main/LICENSE)
---
Enjoy your coding 🚀