Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stremovskyy/gin-request-logger
Request Logger Middleware for Gin Framework
https://github.com/stremovskyy/gin-request-logger
gin gin-framework go golang golang-library middleware
Last synced: about 1 month ago
JSON representation
Request Logger Middleware for Gin Framework
- Host: GitHub
- URL: https://github.com/stremovskyy/gin-request-logger
- Owner: stremovskyy
- License: apache-2.0
- Created: 2019-08-27T07:30:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T12:32:54.000Z (8 months ago)
- Last Synced: 2024-06-20T00:27:08.467Z (6 months ago)
- Topics: gin, gin-framework, go, golang, golang-library, middleware
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gin-request-logger
Request Logger Middleware for Gin FrameworkThis is a middleware for [Gin](https://github.com/gin-gonic/gin) framework.
It uses [logrus](https://github.com/sirupsen/logrus) to provide a log featurues in package.
## Usage
Download and install using [go module](https://blog.golang.org/using-go-modules):
```sh
$ export GO111MODULE=on
$ go get github.com/stremovskyy/gin-request-logger
```Import it in your code:
```go
import "github.com/stremovskyy/gin-request-logger"
```Download and install without using [go module](https://blog.golang.org/using-go-modules):
```sh
$ go get github.com/stremovskyy/gin-request-logger
```Import it in your code:
```go
import "github.com/stremovskyy/gin-request-logger"
```