https://github.com/bobheadxi/zapx
⚡️ Extensions, integrations, and wrappers for Uber's Zap logging library
https://github.com/bobheadxi/zapx
gcp golang graphql http logging middleware postgresql structured-logging zap
Last synced: 10 months ago
JSON representation
⚡️ Extensions, integrations, and wrappers for Uber's Zap logging library
- Host: GitHub
- URL: https://github.com/bobheadxi/zapx
- Owner: bobheadxi
- License: mit
- Created: 2019-04-24T01:17:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-09T23:13:17.000Z (almost 6 years ago)
- Last Synced: 2025-03-25T03:51:11.345Z (11 months ago)
- Topics: gcp, golang, graphql, http, logging, middleware, postgresql, structured-logging, zap
- Language: Go
- Homepage: https://zapx.bobheadxi.dev/benchmarks
- Size: 1.73 MB
- Stars: 13
- Watchers: 1
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zapx
Extensions for [`uber-go/zap`](https://github.com/uber-go/zap), a structured
logging library for [Go](https://golang.org/).
[](https://pkg.go.dev/go.bobheadxi.dev/zapx)
[](https://dev.azure.com/bobheadxi/bobheadxi/_build/latest?definitionId=6&branchName=master)
[](https://zapx.bobheadxi.dev/benchmarks/)
[](https://goreportcard.com/report/go.bobheadxi.dev/zapx)
[](https://zapx.bobheadxi.dev/benchmarks)
## Usage
Each subpackage is a separate module to minimize their dependency trees. To use
the package you want, just import them using their respective package names -
for example:
```sh
go get go.bobheadxi.dev/zapx/zapx
go get go.bobheadxi.dev/zapx/ztest
go get go.bobheadxi.dev/zapx/zhttp
```
Refer to the [godoc](https://godoc.org/go.bobheadxi.dev/zapx) for a complete
listing of available packages and their functionality.
## Development
A few Makefile targets are available to help with development:
```sh
make mod # updates module definitions for all submodule
make test # runs tests for each submodule
```
Refer to the [Makefile](./Makefile) for more details.