-
Notifications
You must be signed in to change notification settings - Fork 0
/
.readme.yaml
29 lines (26 loc) · 1.1 KB
/
.readme.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
title:
name: "Zapz: [Uber's Zap](https://github.com/uber-go/zap) --> [logzio](https://github.com/logzio)"
description: "Zapz creates a zap.Logger that sends logs to logzio. \n
This creates a custom [WriterSync](https://github.com/uber-go/zap/blob/master/zapcore/write_syncer.go) that buffers data on disk and drains every 5 seconds.\n\n
Zapz uses [logzio-go](https://github.com/dougEfresh/logzio-go) to transport logs via HTTP"
user: dougEfresh
project: zapz
installation: >-
```shell
$ go get -u github.com/dougEfresh/zapz
```
quickStart:
code: ""
description: ""
examples:
- "[passwd-pot](https://github.com/dougEfresh/passwd-pot/blob/master/lambda/handler.go)"
- "[lambdazap](https://github.com/dougEfresh/lambdazap)"
usages:
- "Set Debug level: `zapz.New(token, zapz.SetLevel(zapcore.DebugLevel))`"
- "Set CustomEncoder config: `zapz.New(token, zapz.SetEncodeConfig(cfg))`"
- "Set Custom log type:\n\nA type field is created by default: zap.String(\"type\", \"zap-logger\"). You can change it like so `zapz.New(token, zapz.SetType(logzType))`"
tests:
- |
```shell
$ go test -v
```