Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# gin-request-logger
Request Logger Middleware for Gin Framework

This 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"
```