Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/x-punch/gin-logger
Gin middleware/handler to logger url path, which support filter http status code.
https://github.com/x-punch/gin-logger
Last synced: about 1 month ago
JSON representation
Gin middleware/handler to logger url path, which support filter http status code.
- Host: GitHub
- URL: https://github.com/x-punch/gin-logger
- Owner: x-punch
- License: apache-2.0
- Created: 2019-04-22T02:50:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-14T03:53:15.000Z (over 5 years ago)
- Last Synced: 2024-06-20T06:31:02.557Z (6 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gin-logger
Gin middleware used to logger url request, which support advanced filter.# Usage
```
app.Use(logger.DefaultLogger())
```
```
app.Use(logger.Logger(logger.Config{Level: "WARN", SkipMethods: []string{"OPTIONS"}, SkipURLs: []string{"/test"}, SkipURLRegexp: regexp.MustCompile("/swagger/*")}))
```