{"id":17349055,"url":"https://github.com/nafigator/zapper","last_synced_at":"2025-10-20T05:16:21.872Z","repository":{"id":162886829,"uuid":"637375844","full_name":"nafigator/zapper","owner":"nafigator","description":"Zap logger helpers","archived":false,"fork":false,"pushed_at":"2025-06-26T14:36:04.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T15:32:42.559Z","etag":null,"topics":["go","golang-library","logging"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nafigator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-07T11:20:06.000Z","updated_at":"2025-06-26T14:35:27.000Z","dependencies_parsed_at":"2023-11-11T02:26:11.232Z","dependency_job_id":"a5bc817e-df51-4fa3-8c16-0c06bdb07a54","html_url":"https://github.com/nafigator/zapper","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"purl":"pkg:github/nafigator/zapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fzapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fzapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fzapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fzapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nafigator","download_url":"https://codeload.github.com/nafigator/zapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nafigator%2Fzapper/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266779225,"owners_count":23982886,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-library","logging"],"created_at":"2024-10-15T16:54:32.206Z","updated_at":"2025-10-20T05:16:21.783Z","avatar_url":"https://github.com/nafigator.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zapper\n[![GitHub license][License img]][License src] [![GitHub release][Release img]][Release src] [![Github main status][Github main status badge]][Github main status src] [![Go Report Card][Go Report Card badge]][Go Report Card src] [![Coverage report][Codecov report badge]][Codecov report src] [![Conventional Commits][Conventional commits badge]][Conventional commits src]\n\n### Features\n- easiest Zap Logger configuration using yaml-config.\n- configuration for environments without code change.\n- configuration TCP and UDP Zap Logger sinks out of box.\n- minimal code for full-featured Zap Logger initialization. \n\n### Getting started\n1. Install package:\n    ```sh\n    go install github.com/nafigator/zapper@latest\n    ```\n2. Use zapper for Zap Logger initialization:\n\t```go\n\tpackage main\n\n\timport (\n\t\t\"github.com/nafigator/zapper\"\n\t\t\"github.com/nafigator/zapper/conf\"\n\t)\n\n\tfunc main() {\n\t\tlog := zapper.Must(conf.Must())\n\n\t\tlog.Info(\"Zap logger: OK\")\n\t}\n\t```\n\n### Default configuration:\n```yaml\nlevel: info\nencoding: console\noutputPaths:\n  - stdout\nerrorOutputPaths:\n  - stderr\nencoderConfig:\n  messageKey: message\n  levelKey:   level\n  timeKey:    time\n  callerKey:  line\n  levelEncoder: capitalColor\n  timeEncoder:\n    layout: 2006-01-02 15:04:05.000\n  durationEncoder: string\n  callerEncoder: default\n```\n\nFor more options see [zapper.example.yml][Config example].\n\nBy default, package search `zapper.yml` in current dir or in `/etc/zap/zapper.yml`.\n\n### Versioning\nThis software follows *\"Semantic Versioning\"* specifications. The signature of exported package functions is used\nas a public API. Read more on [SemVer.org][semver src].\n\n[License img]: https://img.shields.io/github/license/nafigator/zapper?color=teal\n[License src]: https://www.tldrlegal.com/license/mit-license\n[Release img]: https://img.shields.io/github/v/tag/nafigator/zapper?logo=github\u0026color=teal\u0026filter=!*/*\n[Release src]: https://github.com/nafigator/zapper\n[Conventional commits src]: https://conventionalcommits.org\n[Conventional commits badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-teal.svg\n[Config example]: https://github.com/nafigator/zapper/blob/main/zapper.example.yml\n[semver src]: http://semver.org\n[Github main status src]: https://github.com/nafigator/zapper/tree/main\n[Github main status badge]: https://github.com/nafigator/zapper/actions/workflows/go.yml/badge.svg?branch=main\n[Go Report Card src]: https://goreportcard.com/report/github.com/nafigator/zapper\n[Go Report Card badge]: https://goreportcard.com/badge/github.com/nafigator/zapper\n[Codecov report src]: https://app.codecov.io/gh/nafigator/zapper/tree/main\n[Codecov report badge]: https://codecov.io/gh/nafigator/zapper/branch/main/graph/badge.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafigator%2Fzapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnafigator%2Fzapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnafigator%2Fzapper/lists"}