{"id":16452834,"url":"https://github.com/sytten/logrus-zap-hook","last_synced_at":"2025-10-27T07:30:29.690Z","repository":{"id":57548946,"uuid":"198912721","full_name":"Sytten/logrus-zap-hook","owner":"Sytten","description":"Lorus hook for the zap logger","archived":false,"fork":false,"pushed_at":"2022-12-01T07:51:19.000Z","size":5,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T10:50:47.826Z","etag":null,"topics":["golang","logrus","zap"],"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/Sytten.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":"2019-07-25T23:14:00.000Z","updated_at":"2023-05-19T07:01:01.000Z","dependencies_parsed_at":"2023-01-23T12:01:22.055Z","dependency_job_id":null,"html_url":"https://github.com/Sytten/logrus-zap-hook","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sytten%2Flogrus-zap-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sytten%2Flogrus-zap-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sytten%2Flogrus-zap-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sytten%2Flogrus-zap-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sytten","download_url":"https://codeload.github.com/Sytten/logrus-zap-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238455236,"owners_count":19475415,"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":["golang","logrus","zap"],"created_at":"2024-10-11T10:13:54.695Z","updated_at":"2025-10-27T07:30:29.318Z","avatar_url":"https://github.com/Sytten.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zap Hook for Logrus \u003cimg src=\"http://i.imgur.com/hTeVwmJ.png\" width=\"40\" height=\"40\" alt=\":walrus:\" class=\"emoji\" title=\":walrus:\"/\u003e\n\nUse this hook to send logs from [logrus](https://github.com/sirupsen/logrus) to [zap](https://github.com/uber-go/zap).\nAll levels are sent by default.\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"io/ioutil\"\n    \n    zaphook \"github.com/Sytten/logrus-zap-hook\"\n    \"github.com/sirupsen/logrus\"\n    \"go.uber.org/zap\"\n)\n\nfunc main() {\n    log := logrus.New()\n    log.ReportCaller = true // So Zap reports the right caller\n    log.SetOutput(ioutil.Discard) // Prevent logrus from writing its logs\n    \n    logger, _ := zap.NewDevelopment()\n    hook, _ := zaphook.NewZapHook(logger)\n    \n    log.Hooks.Add(hook)\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsytten%2Flogrus-zap-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsytten%2Flogrus-zap-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsytten%2Flogrus-zap-hook/lists"}