{"id":15355429,"url":"https://github.com/bmf-san/golem","last_synced_at":"2026-01-06T19:06:11.549Z","repository":{"id":54390085,"uuid":"246203830","full_name":"bmf-san/golem","owner":"bmf-san","description":"A leveled logger in json format built with golang.","archived":false,"fork":false,"pushed_at":"2021-02-21T13:40:06.000Z","size":19,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T22:16:48.720Z","etag":null,"topics":["golang","json","leveled","logger","threshold"],"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/bmf-san.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-10T03:57:10.000Z","updated_at":"2024-02-23T19:18:05.000Z","dependencies_parsed_at":"2022-08-13T14:10:57.546Z","dependency_job_id":null,"html_url":"https://github.com/bmf-san/golem","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Fgolem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Fgolem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Fgolem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmf-san%2Fgolem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmf-san","download_url":"https://codeload.github.com/bmf-san/golem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245908917,"owners_count":20692190,"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","json","leveled","logger","threshold"],"created_at":"2024-10-01T12:24:21.841Z","updated_at":"2026-01-06T19:06:11.514Z","avatar_url":"https://github.com/bmf-san.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golem\nA leveled logger in json format built with golang.\n\n# Features\n- Simple\n- Easy\n- Leveled logger\n- Json format\n- Log threshold\n\n# Installation\n`go get -u github.com/bmf-san/golem`\n\n# Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\tgolem \"github.com/bmf-san/golem\"\n)\n\nfunc main() {\n\tfmt.Println(\"Info Level\")\n\tlogger := golem.NewLogger(golem.LevelInfo, time.FixedZone(\"Asia/Tokyo\", 9*60*60))\n\tlogger.Info(\"info\")\n\tlogger.Warn(\"warn\")\n\tlogger.Error(\"error\")\n\tlogger.Fatal(\"fatal\")\n\n\tfmt.Println(\"Warn Level\")\n\tlogger = golem.NewLogger(golem.LevelWarn, time.FixedZone(\"Asia/Tokyo\", 9*60*60))\n\tlogger.Info(\"info\") // This doesn't output\n\tlogger.Warn(\"warn\")\n\tlogger.Error(\"error\")\n\tlogger.Fatal(\"fatal\")\n\n\tfmt.Println(\"Error Level\")\n\tlogger = golem.NewLogger(golem.LevelError, time.FixedZone(\"Asia/Tokyo\", 9*60*60))\n\tlogger.Info(\"info\") // This doesn't output\n\tlogger.Warn(\"warn\") // This doesn't output\n\tlogger.Error(\"error\")\n\tlogger.Fatal(\"fatal\")\n\n\tfmt.Println(\"Fatal Level\")\n\tlogger = golem.NewLogger(golem.LevelFatal, time.FixedZone(\"Asia/Tokyo\", 9*60*60))\n\tlogger.Info(\"info\")   // This doesn't output\n\tlogger.Warn(\"warn\")   // This doesn't output\n\tlogger.Error(\"error\") // This doesn't output\n\tlogger.Fatal(\"fatal\")\n}\n\n```\n\n# Example outputs\n```\n{\"level\":\"fatal\",\"time\":\"2020-05-25T13:59:40.191444Z\",\"file\":\"/Users/bmf/localdev/godev/src/github.com/bmf-san/golem/_examples/main.go:10\",\"message\":\"fatal\"}\n{\"level\":\"error\",\"time\":\"2020-05-25T13:59:40.191732Z\",\"file\":\"/Users/bmf/localdev/godev/src/github.com/bmf-san/golem/_examples/main.go:11\",\"message\":\"error\"}\n{\"level\":\"warn\",\"time\":\"2020-05-25T13:59:40.191747Z\",\"file\":\"/Users/bmf/localdev/godev/src/github.com/bmf-san/golem/_examples/main.go:12\",\"message\":\"warn\"}\n{\"level\":\"info\",\"time\":\"2020-05-25T13:59:40.191756Z\",\"file\":\"/Users/bmf/localdev/godev/src/github.com/bmf-san/golem/_examples/main.go:13\",\"message\":\"info\"}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmf-san%2Fgolem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmf-san%2Fgolem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmf-san%2Fgolem/lists"}