{"id":36549627,"url":"https://github.com/miiton/miilog","last_synced_at":"2026-01-12T06:31:26.368Z","repository":{"id":42940715,"uuid":"503383995","full_name":"miiton/miilog","owner":"miiton","description":"miiton san no logger (zap wrapper)","archived":false,"fork":false,"pushed_at":"2022-07-09T23:09:43.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T12:59:31.764Z","etag":null,"topics":["golang","logging","loki","wrapper","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/miiton.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-06-14T14:01:15.000Z","updated_at":"2023-04-16T05:15:06.000Z","dependencies_parsed_at":"2022-09-26T21:20:54.479Z","dependency_job_id":null,"html_url":"https://github.com/miiton/miilog","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/miiton/miilog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miiton%2Fmiilog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miiton%2Fmiilog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miiton%2Fmiilog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miiton%2Fmiilog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miiton","download_url":"https://codeload.github.com/miiton/miilog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miiton%2Fmiilog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["golang","logging","loki","wrapper","zap"],"created_at":"2026-01-12T06:31:25.598Z","updated_at":"2026-01-12T06:31:26.359Z","avatar_url":"https://github.com/miiton.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miilog\n\nA [zap](https://github.com/uber-go/zap) wrapper for a slacker :zany_face:\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"github.com/miiton/miilog\"\n)\n\nfunc init() {\n\tmiilog.SetLoggerProductionMust()\n\t// or miilog.SetLoggerDevelopmentMust()\n\t// or miilog.SetLoggerProductionWithLokiMust(\"https://loki.example.com/\", \"MYTENANTID\", \"{source=\\\"mygo_source\\\", job=\\\"mygo_job\\\", host=\\\"awesomehost\\\"}\")\n\t// or miilog.SetLoggerProductionWithLokiMust(\"https://loki.example.com/\", \"MYTENANTID\", \"{source=\\\"mygo_source\\\", job=\\\"mygo_job\\\", host=\\\"awesomehost\\\"}\")\n\t// or miilog.SetLoggerProductionWithFileAndLokiMust(\"/var/log/hoge.log\",\"https://loki.example.com/\", \"MYTENANTID\", \"{source=\\\"mygo_source\\\", job=\\\"mygo_job\\\", host=\\\"awesomehost\\\"}\")\n}\n\nfunc main() {\n\tdefer miilog.Sync()\n\tmiilog.Infow(\"hoge\",\n\t\t\"job\", \"fuga\",\n\t\t\"moreinfo\", \"moremore\",\n\t)\n\tmiilog.Warn(\"ahhhhhhhhh?\")\n\tmiilog.Errorf(\"%s\", \"omgomgomgomgomg\")\n}\n```\n\n### Output\n\n`SetLoggerProductionMust()`\n\n```\n{\"level\":\"info\",\"ts\":\"2022-06-15T06:54:43.072224552+09:00\",\"caller\":\"tmp-zap/main.go:15\",\"msg\":\"hoge\",\"job\":\"fuga\",\"moreinfo\":\"moremore\"}\n{\"level\":\"warn\",\"ts\":\"2022-06-15T06:54:43.072297729+09:00\",\"caller\":\"tmp-zap/main.go:19\",\"msg\":\"ahhhhhhhhh?\"}\n{\"level\":\"error\",\"ts\":\"2022-06-15T06:54:43.072306135+09:00\",\"caller\":\"tmp-zap/main.go:20\",\"msg\":\"omgomgomgomgomg\",\"stacktrace\":\"main.main\\n\\t/home/USERNAME/dev/src/github.com/miiton/tmp-zap/main.go:20\\nruntime.main\\n\\t/home/linuxbrew/.linuxbrew/Cellar/go/1.18/libexec/src/runtime/proc.go:250\"}\n```\n\n`SetLoggerDevelopmentMust()`\n\n```\n2022-06-15T06:55:24.467+0900    INFO    tmp-zap/main.go:15      hoge    {\"job\": \"fuga\", \"moreinfo\": \"moremore\"}\n2022-06-15T06:55:24.467+0900    WARN    tmp-zap/main.go:19      ahhhhhhhhh?\n2022-06-15T06:55:24.467+0900    ERROR   tmp-zap/main.go:20      omgomgomgomgomg\nmain.main\n        /home/USERNAME/dev/src/github.com/miiton/tmp-zap/main.go:20\nruntime.main\n        /home/linuxbrew/.linuxbrew/Cellar/go/1.18/libexec/src/runtime/proc.go:250\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiiton%2Fmiilog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiiton%2Fmiilog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiiton%2Fmiilog/lists"}