{"id":16612900,"url":"https://github.com/ttys3/pulsarzap","last_synced_at":"2026-07-03T18:35:58.366Z","repository":{"id":50490104,"uuid":"519253798","full_name":"ttys3/pulsarzap","owner":"ttys3","description":"zap logger wrapper for pulsar Logger","archived":false,"fork":false,"pushed_at":"2023-10-12T01:07:22.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T22:39:11.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ttys3.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-29T14:57:17.000Z","updated_at":"2022-07-29T15:31:23.000Z","dependencies_parsed_at":"2024-06-20T12:25:34.059Z","dependency_job_id":"939268f0-3541-47b8-8457-7793e84c2c1f","html_url":"https://github.com/ttys3/pulsarzap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ttys3/pulsarzap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys3%2Fpulsarzap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys3%2Fpulsarzap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys3%2Fpulsarzap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys3%2Fpulsarzap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ttys3","download_url":"https://codeload.github.com/ttys3/pulsarzap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ttys3%2Fpulsarzap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35097759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-03T02:00:05.635Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-10-12T01:45:16.560Z","updated_at":"2026-07-03T18:35:58.351Z","avatar_url":"https://github.com/ttys3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pulsarzap\nzap logger wrapper for pulsar Logger\n\n## Usage\n\n```go\nimport \"github.com/ttys3/pulsarzap\"\n```\n\n### simple usage\n\n```go\nclient, err := pulsar.NewClient(pulsar.ClientOptions{\n    URL:               \"pulsar://pulsar-broker.service.dc1.consul:6650\",\n    Logger:            pulsarzap.NewDefault(),\n})\n```\n\n### use custom zap logger config\n\nconsole encoding logger for development\n\n```go\nlc := zap.NewDevelopmentConfig()\nlc.Level = zap.NewAtomicLevelAt(zap.DebugLevel)\nlc.DisableStacktrace = true\nlc.Encoding = \"console\"\nlc.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder\nlogger, _ := lc.Build(zap.WithCaller(true))\nlog := pulsarzap.New(logger.Sugar())\n\nclient, err := pulsar.NewClient(pulsar.ClientOptions{\n    URL:               \"pulsar://pulsar-broker.service.dc1.consul:6650\",\n    Logger:            log,\n})\n```\n\njson encoding logger for production\n\n```go\nlc := zap.NewProductionConfig()\nlc.Level = zap.NewAtomicLevelAt(zap.InfoLevel)\nlogger, _ := lc.Build(zap.WithCaller(true))\nlog := pulsarzap.New(logger.Sugar())\n\nclient, err := pulsar.NewClient(pulsar.ClientOptions{\n    URL:               \"pulsar://pulsar-broker.service.dc1.consul:6650\",\n    Logger:            log,\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttys3%2Fpulsarzap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttys3%2Fpulsarzap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttys3%2Fpulsarzap/lists"}