{"id":15926176,"url":"https://github.com/jmank88/mustlog","last_synced_at":"2025-08-29T06:05:20.345Z","repository":{"id":57600979,"uuid":"83463229","full_name":"jmank88/mustlog","owner":"jmank88","description":"error-less go-kit/log extension","archived":false,"fork":false,"pushed_at":"2017-04-19T17:41:24.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T13:27:36.590Z","etag":null,"topics":["go","go-kit","golang","logging"],"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/jmank88.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":"2017-02-28T17:58:03.000Z","updated_at":"2017-04-25T17:36:53.000Z","dependencies_parsed_at":"2022-08-24T13:37:13.078Z","dependency_job_id":null,"html_url":"https://github.com/jmank88/mustlog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmank88/mustlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmank88%2Fmustlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmank88%2Fmustlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmank88%2Fmustlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmank88%2Fmustlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmank88","download_url":"https://codeload.github.com/jmank88/mustlog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmank88%2Fmustlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272639957,"owners_count":24968549,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"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":["go","go-kit","golang","logging"],"created_at":"2024-10-06T22:22:05.756Z","updated_at":"2025-08-29T06:05:20.290Z","avatar_url":"https://github.com/jmank88.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MustLog [![GoDoc](https://godoc.org/github.com/jmank88/mustlog?status.svg)](https://godoc.org/github.com/jmank88/mustlog) [![Go Report Card](https://goreportcard.com/badge/github.com/jmank88/mustlog)](https://goreportcard.com/report/github.com/jmank88/mustlog)\nAn error-less go-kit/log extension.\n\n## MustLogger\n\nMustLogger extends log.Logger with Must, an error-less version of Log.\n\n```go\nmustLogger := NewMustLogger(\u0026errLogger{}, func(err error, keyvals ...interface{}) {\n    fmt.Println(\"failed to log:\", err)\n})\nmustLogger.Log(\"k\", \"v\")\nmustLogger.Log(poison, \"poison\")\n\nmustLogger.Must(\"k\", \"v\")\nmustLogger.Must(poison, \"poison\")\n```\n\nOutput:\n\n```text\nk v\nk v\nfailed to log: poisoned\n```\n\n## MustContext\n\nMustContext extends log.Context to implement MustLogger.\n\n```go\nmustContext := NewMustContext(\u0026errLogger{}, func(err error, keyvals ...interface{}) {\n    fmt.Println(\"failed to log:\", err)\n})\n\nmustContext.Must(\"k\", \"v\")\nmustContext.Must(poison, \"poison\")\n\nmustContext = mustContext.With(\"withK\", \"withV\")\nmustContext.Must(\"k\", \"v\")\nmustContext.Must(poison, \"poison\")\n\nmustContext = mustContext.WithPrefix(\"prefixK\", \"prefixV\")\nmustContext.Must(\"k\", \"v\")\nmustContext.Must(poison, \"poison\")\n```\n\nOutput:\n\n```text\nk v\nfailed to log: poisoned\nwithK withV k v\nfailed to log: poisoned\nprefixK prefixV withK withV k v\nfailed to log: poisoned\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmank88%2Fmustlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmank88%2Fmustlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmank88%2Fmustlog/lists"}