{"id":18581879,"url":"https://github.com/coder/flog","last_synced_at":"2025-04-10T11:35:35.028Z","repository":{"id":46783601,"uuid":"162761277","full_name":"coder/flog","owner":"coder","description":"Pretty formatted log for Go","archived":false,"fork":false,"pushed_at":"2023-03-12T17:46:48.000Z","size":81,"stargazers_count":24,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T12:39:53.620Z","etag":null,"topics":[],"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/coder.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}},"created_at":"2018-12-21T22:01:19.000Z","updated_at":"2025-03-03T05:27:03.000Z","dependencies_parsed_at":"2023-07-13T11:32:17.281Z","dependency_job_id":null,"html_url":"https://github.com/coder/flog","commit_stats":null,"previous_names":["cdr/flog"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fflog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fflog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fflog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fflog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder","download_url":"https://codeload.github.com/coder/flog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208688,"owners_count":21065205,"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":[],"created_at":"2024-11-07T00:07:56.144Z","updated_at":"2025-04-10T11:35:30.011Z","avatar_url":"https://github.com/coder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flog\n\n`flog` is a minimal, formatted, pretty logging package for Go.\n\nIt's optimized for human readability and CLIs.\n* Log levels color-code the timestamp\n* Log level doesn't change the width of the prefix\n\n[slog](https://github.com/cdr/slog) is recommended for robust logging.\n\n[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/coder/flog)\n\n## Install\n\n`go get github.com/coder/flog`\n\n## Usage\n\n```go\nflog.Infof(\"hello %.3f\", 1/3.0)\nflog.Successf(\"finished that\")\nflog.Errorf(\"oops\")\n\nlog := flog.New(os.Stderr).WithPrefix(\"user %v: \", 500)\n\nlog.Errorf(\"didn't work out\")\n```\n\n## Output\n\n![example](docs/usage.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fflog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder%2Fflog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fflog/lists"}