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

https://github.com/xgfone/go-apiserver-middleware-logger-ext

Provide an extension of `github.com/xgfone/go-apiserver/http/middleware/logger` to support to log the request and response header and body.
https://github.com/xgfone/go-apiserver-middleware-logger-ext

Last synced: 4 months ago
JSON representation

Provide an extension of `github.com/xgfone/go-apiserver/http/middleware/logger` to support to log the request and response header and body.

Awesome Lists containing this project

README

          

# Go ApiServer Middleware Logger Ext [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](https://raw.githubusercontent.com/xgfone/go-apiserver-middleware-logger-ext/master/LICENSE)

Provide an extension of `github.com/xgfone/go-apiserver/http/middleware/logger` to support to log the request and response header and body, requiring `Go1.21+` and `github.com/xgfone/go-apiserver@v0.42.0+`.

### Usage

```go
import _ "github.com/xgfone/go-apiserver-middleware-logger-ext"
```