Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ks-avinash/zap-examples
Examples of using Uber's zap Go logging library
https://github.com/ks-avinash/zap-examples
Last synced: 3 months ago
JSON representation
Examples of using Uber's zap Go logging library
- Host: GitHub
- URL: https://github.com/ks-avinash/zap-examples
- Owner: ks-avinash
- License: mit
- Fork: true (sandipb/zap-examples)
- Created: 2020-12-30T16:41:26.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2018-05-30T18:06:04.000Z (over 6 years ago)
- Last Synced: 2023-09-12T17:31:58.211Z (over 1 year ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Using the zap logging library
This repository provides some examples of using [Uber's zap](https://github.com/uber-go/zap) Go logging library
Install the zap library before trying out the examples:
```console
$ source env.sh$ go get -u go.uber.org/zap
$ go run src/simple1/main.go
```## Examples
* [Simplest usage using presets](./src/simple1)
* [Creating a custom logger](./src/customlogger)
* [Using the global logger](./src/globallogger)
* [Creating custom encoders for metadata fields](./src/customencoder)