{"id":21100199,"url":"https://github.com/dougefresh/zapz","last_synced_at":"2025-03-14T08:09:20.375Z","repository":{"id":57494247,"uuid":"126342782","full_name":"dougEfresh/zapz","owner":"dougEfresh","description":"Hook between Uber zap and logz","archived":false,"fork":false,"pushed_at":"2019-06-16T13:05:15.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-21T02:29:42.714Z","etag":null,"topics":["go","golang","golang-library","logging","logging-library","logz","uber-zap","zap"],"latest_commit_sha":null,"homepage":"https://logz.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dougEfresh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-22T13:53:16.000Z","updated_at":"2023-08-11T06:23:08.000Z","dependencies_parsed_at":"2022-09-02T04:25:23.145Z","dependency_job_id":null,"html_url":"https://github.com/dougEfresh/zapz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dougEfresh%2Fzapz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dougEfresh%2Fzapz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dougEfresh%2Fzapz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dougEfresh%2Fzapz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dougEfresh","download_url":"https://codeload.github.com/dougEfresh/zapz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544662,"owners_count":20308169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-library","logging","logging-library","logz","uber-zap","zap"],"created_at":"2024-11-19T23:05:10.966Z","updated_at":"2025-03-14T08:09:20.345Z","avatar_url":"https://github.com/dougEfresh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zapz: [Uber's Zap](https://github.com/uber-go/zap) --\u003e [logzio](https://github.com/logzio)\n\nZapz 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\n\n[![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Go Report][report-img]][report]\n\n## Installation\n```shell\n$ go get -u github.com/dougEfresh/zapz\n```\n\n## Quick Start\n\n ```go\npackage main\n\nimport (\n  \"os\"\n\n  \"github.com/dougEfresh/zapz\"\n    )\n\nfunc main() {\n  l, err := zapz.New(os.Args[1]) //logzio token required\n  if err != nil {\n    panic(err)\n  }\n\n  l.Info(\"tester\")\n  // Logs are buffered on disk, this will flush it\n  if l.Sync() != nil {\n      panic(\"oops\")\n  }\n}\n```\n\n\n\n\n## Getting Started\n\n### Get Logzio token\n1. Go to Logzio website\n2. Sign in with your Logzio account\n3. Click the top menu gear icon (Account)\n4. The Logzio token is given in the account page\n\n## Usage\n\nSet Debug level: `zapz.New(token, zapz.SetLevel(zapcore.DebugLevel))`\n\nSet CustomEncoder config: `zapz.New(token, zapz.SetEncodeConfig(cfg))`\n\nSet 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))`\n\n\n## Examples\n\n[passwd-pot](https://github.com/dougEfresh/passwd-pot/blob/master/lambda/handler.go)\n\n[lambdazap](https://github.com/dougEfresh/lambdazap)\n\n\n## Prerequisites\n\ngo 1.x\n\n## Tests\n\n```shell\n$ go test -v\n\n```\n\n\n## Contributing\n All PRs are welcome\n\n## Authors\n\n* **Douglas Chimento**  - [dougEfresh][me]\n\n## License\n\nThis project is licensed under the Apache License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n  [logz java](https://github.com/logzio/logzio-java-sender)\n\n### TODO\n\n[doc-img]: https://godoc.org/github.com/dougEfresh/zapz?status.svg\n[doc]: https://godoc.org/github.com/dougEfresh/zapz\n[ci-img]: https://travis-ci.org/dougEfresh/zapz.svg?branch=master\n[ci]: https://travis-ci.org/dougEfresh/zapz\n[cov-img]: https://codecov.io/gh/dougEfresh/zapz/branch/master/graph/badge.svg\n[cov]: https://codecov.io/gh/dougEfresh/zapz\n[glide.lock]: https://github.com/uber-go/zap/blob/master/glide.lock\n[zap]: https://github.com/uber-go/zap\n[me]: https://github.com/dougEfresh\n[report-img]: https://goreportcard.com/badge/github.com/dougEfresh/zapz\n[report]: https://goreportcard.com/report/github.com/dougEfresh/zapz","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdougefresh%2Fzapz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdougefresh%2Fzapz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdougefresh%2Fzapz/lists"}