{"id":19603937,"url":"https://github.com/kubermatic/glog-gokit","last_synced_at":"2025-10-06T04:57:19.905Z","repository":{"id":57488128,"uuid":"132607273","full_name":"kubermatic/glog-gokit","owner":"kubermatic","description":"This packages is a replacement for glog in projects that use the go-kit logger.","archived":false,"fork":false,"pushed_at":"2018-12-07T16:31:24.000Z","size":9,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-06-03T01:43:18.062Z","etag":null,"topics":["glog","gokit","gokit-log","kubernetes","logger","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/kubermatic.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":"2018-05-08T12:41:39.000Z","updated_at":"2022-04-01T03:58:16.000Z","dependencies_parsed_at":"2022-08-29T11:22:16.635Z","dependency_job_id":null,"html_url":"https://github.com/kubermatic/glog-gokit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kubermatic/glog-gokit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubermatic%2Fglog-gokit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubermatic%2Fglog-gokit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubermatic%2Fglog-gokit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubermatic%2Fglog-gokit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kubermatic","download_url":"https://codeload.github.com/kubermatic/glog-gokit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubermatic%2Fglog-gokit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278561278,"owners_count":26006954,"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-10-06T02:00:05.630Z","response_time":65,"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":["glog","gokit","gokit-log","kubernetes","logger","logging"],"created_at":"2024-11-11T09:33:48.700Z","updated_at":"2025-10-06T04:57:19.889Z","avatar_url":"https://github.com/kubermatic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# glog-gokit\n\nThis packages is a replacement for [glog](github.com/golang/glog)\nin projects that use the [go-kit logger](https://godoc.org/github.com/go-kit/kit/log).\n\nIt is inspired by istio's glog package for zap:\nhttps://github.com/istio/glog\n\n## Usage\n\nOverride the official glog package with this one.\nThis simply replaces the code in `vendor/golang/glog` with the code of this package.\n\n**With dep**\n\nIn your `Gopkg.toml`:\n```toml\n[[override]]\n  name = \"github.com/golang/glog\"\n  source = \"github.com/kubermatic/glog-gokit\"\n```\n\n**With Go modules**\n\nAdd this line to your `go.mod` file:\n\n```\nreplace github.com/golang/glog =\u003e github.com/kubermatic/glog-gokit master\n```\n\nIn your `main.go`:\n```go\n// Import the package like it is original glog\nimport \"github.com/golang/glog\"\n\n\n// Create go-kit logger in your main.go\nlogger := log.NewLogfmtLogger(log.NewSyncWriter(os.Stdout))\nlogger = log.With(logger, \"ts\", log.DefaultTimestampUTC)\nlogger = log.With(logger, \"caller\", log.DefaultCaller)\nlogger = level.NewFilter(logger, level.AllowAll())\n\n// Overriding the default glog with our go-kit glog implementation.\n// Thus we need to pass it our go-kit logger object.\nglog.SetLogger(logger)\n```\n\nSetting the logger to the glog package **MUST** happen before using glog in any package.\n\n## Function Levels\n\n|     glog     | gokit |\n| ------------ | ----- |\n| Info         | Debug |\n| InfoDepth    | Debug |\n| Infof        | Debug |\n| Infoln       | Debug |\n| Warning      | Warn  |\n| WarningDepth | Warn  |\n| Warningf     | Warn  |\n| Warningln    | Warn  |\n| Error        | Error |\n| ErrorDepth   | Error |\n| Errorf       | Error |\n| Errorln      | Error |\n| Exit         | Error |\n| ExitDepth    | Error |\n| Exitf        | Error |\n| Exitln       | Error |\n| Fatal        | Error |\n| FatalDepth   | Error |\n| Fatalf       | Error |\n| Fatalln      | Error |\n\nThis table is rather opinionated and build for use with the Kubernetes' [Go client](https://github.com/kubernetes/client-go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubermatic%2Fglog-gokit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubermatic%2Fglog-gokit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubermatic%2Fglog-gokit/lists"}