{"id":37224790,"url":"https://github.com/binaryphile/zerologr","last_synced_at":"2026-01-15T01:43:43.148Z","repository":{"id":64887319,"uuid":"578004079","full_name":"binaryphile/zerologr","owner":"binaryphile","description":"A logr implementation using Zerolog","archived":false,"fork":true,"pushed_at":"2022-12-23T20:49:15.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T17:34:22.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"go-logr/zerologr","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/binaryphile.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":"2022-12-14T02:52:08.000Z","updated_at":"2024-06-20T17:34:22.448Z","dependencies_parsed_at":"2023-01-30T19:30:46.317Z","dependency_job_id":null,"html_url":"https://github.com/binaryphile/zerologr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/binaryphile/zerologr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fzerologr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fzerologr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fzerologr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fzerologr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/binaryphile","download_url":"https://codeload.github.com/binaryphile/zerologr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/binaryphile%2Fzerologr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-15T01:43:42.473Z","updated_at":"2026-01-15T01:43:43.141Z","avatar_url":"https://github.com/binaryphile.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zerologr\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/go-logr/zerologr.svg)](https://pkg.go.dev/github.com/go-logr/zerologr)\n![test](https://github.com/go-logr/zerologr/workflows/test/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/go-logr/zerologr)](https://goreportcard.com/report/github.com/go-logr/zerologr)\n\nA [logr](https://github.com/go-logr/logr) LogSink implementation using [Zerolog](https://github.com/rs/zerolog).\n\n## Usage\n\n```go\nimport (\n    \"os\"\n\n    \"github.com/go-logr/logr\"\n    \"github.com/go-logr/zerologr\"\n    \"github.com/rs/zerolog\"\n)\n\nfunc main() {\n    zerolog.TimeFieldFormat = zerolog.TimeFormatUnixMs\n    zerologr.NameFieldName = \"logger\"\n    zerologr.NameSeparator = \"/\"\n\n    zl := zerolog.New(os.Stderr)\n    zl = zl.With().Caller().Timestamp().Logger()\n    var log logr.Logger = zerologr.New(\u0026zl)\n\n    log.Info(\"Logr in action!\", \"the answer\", 42)\n}\n```\n\n## Implementation Details\n\nFor the most part, concepts in Zerolog correspond directly with those in logr.\n\nLevels in logr correspond to custom debug levels in Zerolog. Any given level\nin logr is represents by `zerologLevel = 1 - logrLevel`.\n\nFor example `V(2)` is equivalent to Zerolog's `TraceLevel`, while `V(1)` is\nequivalent to Zerolog's `DebugLevel`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryphile%2Fzerologr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinaryphile%2Fzerologr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinaryphile%2Fzerologr/lists"}