{"id":23960551,"url":"https://github.com/dreamph/logc","last_synced_at":"2026-06-15T08:31:33.196Z","repository":{"id":270672212,"uuid":"911115975","full_name":"dreamph/logc","owner":"dreamph","description":"Dynamic Golang Logger (Zap, ZeroLog)","archived":false,"fork":false,"pushed_at":"2025-01-13T03:11:35.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T12:19:49.996Z","etag":null,"topics":["golang","logger","logging","zap","zerolog"],"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/dreamph.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":"2025-01-02T09:27:43.000Z","updated_at":"2025-01-13T03:10:38.000Z","dependencies_parsed_at":"2025-01-02T10:21:56.021Z","dependency_job_id":"c3df1650-251a-40b2-80f9-82d4b08bb50e","html_url":"https://github.com/dreamph/logc","commit_stats":null,"previous_names":["dreamph/logc"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dreamph/logc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamph%2Flogc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamph%2Flogc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamph%2Flogc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamph%2Flogc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dreamph","download_url":"https://codeload.github.com/dreamph/logc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dreamph%2Flogc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34355157,"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-06-15T02:00:07.085Z","response_time":63,"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":["golang","logger","logging","zap","zerolog"],"created_at":"2025-01-06T19:29:46.790Z","updated_at":"2026-06-15T08:31:33.171Z","avatar_url":"https://github.com/dreamph.png","language":"Go","funding_links":["https://www.buymeacoffee.com/dreamph"],"categories":[],"sub_categories":[],"readme":"# logc\n\nGolang Logger Wrapper\n- Easy for change Log Library Support (zap, zerolog)\n- Simple \u0026 Easy \n\nInstall\n=======\n``` sh\ngo get github.com/dreamph/logc\n```\n\nExamples - Use Zap\n=======\n``` go\npackage main\n\nimport (\n\t\"context\"\n\t\"github.com/dreamph/logc\"\n\t\"github.com/dreamph/logc/zap\"\n)\n\nfunc main() {\n\tlogger := zap.NewLogger(\u0026logc.Options{\n\t\tFilePath: \"./app.log\",\n\t\tLevel:    \"debug\",\n\t\tFormat:   \"json\",\n\t\tMaxAge:   30,\n\t\tMaxSize:  10,\n\t})\n\tdefer logger.Release()\n\n\tlogger.Info(\"Test Info\")\n\tlogger.Warn(\"Test Warn\")\n\n\td := map[string]interface{}{\n\t\t\"requestId\": \"123\",\n\t}\n\tlog := logger.WithLogger(logc.WithValue(context.Background(), d))\n\tlog.Info(\"Test\")\n\n}\n```\n\nExamples - Use ZeroLog\n=======\n``` go\npackage main\n\nimport (\n\t\"context\"\n\t\"github.com/dreamph/logc\"\n\t\"github.com/dreamph/logc/zerolog\"\n)\n\nfunc main() {\n\tlogger := zerolog.NewLogger(\u0026logc.Options{\n\t\tFilePath: \"./app.log\",\n\t\tLevel:    \"debug\",\n\t\tFormat:   \"json\",\n\t\tMaxAge:   30,\n\t\tMaxSize:  10,\n\t})\n\tdefer logger.Release()\n\n\tlogger.Info(\"Test Info\")\n\tlogger.Warn(\"Test Warn\")\n\n\td := map[string]interface{}{\n\t\t\"requestId\": \"123\",\n\t}\n\tlog := logger.WithLogger(logc.WithValue(context.Background(), d))\n\tlog.Info(\"Test\")\n}\n```\n\n\nBuy Me a Coffee\n=======\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/dreamph)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamph%2Flogc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreamph%2Flogc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamph%2Flogc/lists"}