{"id":29636688,"url":"https://github.com/brpaz/echozap","last_synced_at":"2025-07-21T17:34:16.441Z","repository":{"id":38017042,"uuid":"211698125","full_name":"brpaz/echozap","owner":"brpaz","description":"Middleware for Golang Echo framework that provides integration with Uber´s Zap logging library for logging HTTP requests","archived":false,"fork":false,"pushed_at":"2023-10-11T12:11:01.000Z","size":13,"stargazers_count":65,"open_issues_count":3,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-06-18T15:35:19.792Z","etag":null,"topics":["echo-framework","golang","logging","middleware"],"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/brpaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"brpaz","patreon":"brpaz","custom":"https://www.buymeacoffee.com/Z1Bu6asGV"}},"created_at":"2019-09-29T17:14:30.000Z","updated_at":"2024-06-03T09:19:51.000Z","dependencies_parsed_at":"2024-06-18T15:30:11.130Z","dependency_job_id":"aae351a4-7231-451c-881d-2783f235ab2f","html_url":"https://github.com/brpaz/echozap","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/brpaz/echozap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brpaz%2Fechozap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brpaz%2Fechozap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brpaz%2Fechozap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brpaz%2Fechozap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brpaz","download_url":"https://codeload.github.com/brpaz/echozap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brpaz%2Fechozap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266342809,"owners_count":23914262,"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-21T11:47:31.412Z","response_time":64,"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":["echo-framework","golang","logging","middleware"],"created_at":"2025-07-21T17:34:12.101Z","updated_at":"2025-07-21T17:34:16.422Z","avatar_url":"https://github.com/brpaz.png","language":"Go","funding_links":["https://github.com/sponsors/brpaz","https://patreon.com/brpaz","https://www.buymeacoffee.com/Z1Bu6asGV"],"categories":[],"sub_categories":[],"readme":"\n# echozap\n\n\u003e Middleware for Golang [Echo](https://echo.labstack.com/) framework that provides integration with Uber´s [Zap](https://github.com/uber-go/zap)  logging library for logging HTTP requests.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](LICENSE)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge)](http://commitizen.github.io/cz-cli/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge)](https://github.com/semantic-release/semantic-release?style=for-the-badge)\n\n[![Actions Status](https://github.com/brpaz/echozap/workflows/CI/badge.svg?style=for-the-badge)](https://github.com/brpaz/echozap/actions)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/99c5875d156440c0b861dad80c76c01f)](https://www.codacy.com/manual/brpaz/echozap?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=brpaz/echozap\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/99c5875d156440c0b861dad80c76c01f)](https://www.codacy.com/manual/brpaz/echozap?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=brpaz/echozap\u0026utm_campaign=Badge_Coverage)\n\n## Pre-requisites\n\n*  Go with Go modules enabled.\n*  [Echo v4](https://echo.labstack.com/)\n*  [Zap](https://github.com/uber-go/zap)\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"net/http\"\n\n\t\"github.com/brpaz/echozap\"\n\t\"github.com/labstack/echo/v4\"\n\t\"go.uber.org/zap\"\n)\n\nfunc main() {\n\te := echo.New()\n\n\tzapLogger, _ := zap.NewProduction()\n\n\te.Use(echozap.ZapLogger(zapLogger))\n\n\te.GET(\"/\", func(c echo.Context) error {\n\t\treturn c.String(http.StatusOK, \"Hello, World!\")\n\t})\n\te.Logger.Fatal(e.Start(\":1323\"))\n}\n```\n\n## Logged details\n\nThe following information is logged:\n\n*  Status Code\n*  Time\n*  Uri\n*  Method\n*  Hostname\n*  Remote IP Address\n\n## Todo\n\n*  Add more customization options.\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\n## Show your support\n\nIf this project have been useful for you, I would be grateful to have your support.\n\nGive a ⭐️ to the project, or just:\n\n\u003ca href=\"https://www.buymeacoffee.com/Z1Bu6asGV\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\n## Author\n\n👤 **Bruno Paz**\n\n*  Website: [https://github.com/brpaz](https://github.com/brpaz)\n*  Github: [@brpaz](https://github.com/brpaz)\n\n## 📝 License\n\nCopyright © 2019 [Bruno Paz](https://github.com/brpaz).\n\nThis project is [MIT](LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrpaz%2Fechozap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrpaz%2Fechozap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrpaz%2Fechozap/lists"}