{"id":13713412,"url":"https://github.com/wayneashleyberry/logfmt","last_synced_at":"2026-02-05T08:36:06.412Z","repository":{"id":57508926,"uuid":"213616751","full_name":"wayneashleyberry/logfmt","owner":"wayneashleyberry","description":"An opinionated log formatter that you probably don't want to use.","archived":false,"fork":false,"pushed_at":"2020-07-13T12:58:00.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-15T03:05:42.301Z","etag":null,"topics":["cli","command-line","fmt","formatter","gcp","go","golang","google-cloud","log"],"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/wayneashleyberry.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":"2019-10-08T10:47:01.000Z","updated_at":"2020-01-13T13:10:36.000Z","dependencies_parsed_at":"2022-08-29T23:22:53.473Z","dependency_job_id":null,"html_url":"https://github.com/wayneashleyberry/logfmt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wayneashleyberry/logfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Flogfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Flogfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Flogfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Flogfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayneashleyberry","download_url":"https://codeload.github.com/wayneashleyberry/logfmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Flogfmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29117245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: 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":["cli","command-line","fmt","formatter","gcp","go","golang","google-cloud","log"],"created_at":"2024-08-02T23:01:35.493Z","updated_at":"2026-02-05T08:36:06.396Z","avatar_url":"https://github.com/wayneashleyberry.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"\u003e An opinionated log formatter that you probably don't want to use.\n\n- `logfmt` reads from stdin and prints formatted logs\n- `logfmt` expects structured json with certain keys\n- `logfmt` formats output to be similar to Google Cloud Platform Logging\n\n### Installation\n\nYou will need to have your `$PATH` setup to your go installation.\n\n```\n# Add this to your terminal .rc file\nexport PATH=\"$HOME/go/bin:$PATH\"\n```\n\n```sh\ngo get -u github.com/wayneashleyberry/logfmt\n```\n\n### Usage\n\n`logfmt` reads from stdin, so pipe the output from your service into `logfmt`:\n\n```sh\ngo run myapp.go | logfmt\n```\n\n### Example\n\n```sh\ncat testdata/test.json | go run main.go\n```\n\n\u003cimg width=\"1074\" alt=\"screen shot 2018-05-27 at 12 27 47\" src=\"https://user-images.githubusercontent.com/727262/40585374-67fe7a52-61a9-11e8-95a9-786df02f1913.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Flogfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayneashleyberry%2Flogfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Flogfmt/lists"}