Request logging middleware for go-chi using zap.
Go to file
renovate 225af787c7
continuous-integration/drone/push Build is passing Details
chore(deps): update module go.uber.org/zap to v1.23.0 (#6)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [go.uber.org/zap](https://github.com/uber-go/zap) | require | minor | `v1.21.0` -> `v1.23.0` |

---

### Release Notes

<details>
<summary>uber-go/zap</summary>

### [`v1.23.0`](https://github.com/uber-go/zap/releases/tag/v1.23.0)

[Compare Source](https://github.com/uber-go/zap/compare/v1.22.0...v1.23.0)

Enhancements:

-   [#&#8203;1147][]: Add a `zapcore.LevelOf` function to determine the level of a
    `LevelEnabler` or `Core`.
-   [#&#8203;1155][]: Add `zap.Stringers` field constructor to log arrays of objects
    that implement `String() string`.

[#&#8203;1147]: https://github.com/uber-go/zap/pull/1147

[#&#8203;1155]: https://github.com/uber-go/zap/pull/1155

### [`v1.22.0`](https://github.com/uber-go/zap/releases/tag/v1.22.0)

[Compare Source](https://github.com/uber-go/zap/compare/v1.21.0...v1.22.0)

Enhancements:

-   [#&#8203;1071][]: Add `zap.Objects` and `zap.ObjectValues` field constructors to log
    arrays of objects. With these two constructors, you don't need to implement
    `zapcore.ArrayMarshaler` for use with `zap.Array` if those objects implement
    `zapcore.ObjectMarshaler`.
-   [#&#8203;1079][]: Add `SugaredLogger.WithOptions` to build a copy of an existing
    `SugaredLogger` with the provided options applied.
-   [#&#8203;1080][]: Add `*ln` variants to `SugaredLogger` for each log level.
    These functions provide a string joining behavior similar to `fmt.Println`.
-   [#&#8203;1088][]: Add `zap.WithFatalHook` option to control the behavior of the
    logger for `Fatal`-level log entries. This defaults to exiting the program.
-   [#&#8203;1108][]: Add a `zap.Must` function that you can use with `NewProduction` or
    `NewDevelopment` to panic if the system was unable to build the logger.
-   [#&#8203;1118][]: Add a `Logger.Log` method that allows specifying the log level for
    a statement dynamically.

Thanks to [@&#8203;cardil](https://github.com/cardil), [@&#8203;craigpastro](https://github.com/craigpastro), [@&#8203;sashamelentyev](https://github.com/sashamelentyev), [@&#8203;shota3506](https://github.com/shota3506), and [@&#8203;zhupeijun](https://github.com/zhupeijun)
for their contributions to this release.

[#&#8203;1071]: https://github.com/uber-go/zap/pull/1071

[#&#8203;1079]: https://github.com/uber-go/zap/pull/1079

[#&#8203;1080]: https://github.com/uber-go/zap/pull/1080

[#&#8203;1088]: https://github.com/uber-go/zap/pull/1088

[#&#8203;1108]: https://github.com/uber-go/zap/pull/1108

[#&#8203;1118]: https://github.com/uber-go/zap/pull/1118

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTQuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5NC4zIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #6
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-09-16 18:47:06 +00:00
_example/basic update version in chizap/_example/basic 2022-09-16 16:47:46 +02:00
.drone.yml add .drone.yml (#2) 2022-09-16 14:14:31 +00:00
.gitignore init 2021-08-31 08:03:13 +02:00
LICENSE init 2021-08-31 08:03:13 +02:00
README.md add example and update README.md (#3) 2022-09-16 14:43:57 +00:00
config.go refactor (#1) 2022-09-16 14:06:41 +00:00
go.mod chore(deps): update module go.uber.org/zap to v1.23.0 (#6) 2022-09-16 18:47:06 +00:00
go.sum chore(deps): update module go.uber.org/zap to v1.23.0 (#6) 2022-09-16 18:47:06 +00:00
logger.go refactor (#1) 2022-09-16 14:06:41 +00:00
logger_test.go run tests in parallel (#4) 2022-09-16 14:55:21 +00:00
renovate.json refactor (#1) 2022-09-16 14:06:41 +00:00

README.md

chizap Build Status

Request logging middleware for go-chi using zap.

Installation

go get gitea.dwysokinski.me/Kichiyaki/chizap

Usage

See the example.