{"id":30883277,"url":"https://github.com/globocom/prettylog","last_synced_at":"2025-09-08T09:44:12.431Z","repository":{"id":46341075,"uuid":"212212341","full_name":"globocom/prettylog","owner":"globocom","description":"Logs for human beings","archived":false,"fork":false,"pushed_at":"2023-10-11T18:40:10.000Z","size":9975,"stargazers_count":65,"open_issues_count":6,"forks_count":24,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-03T07:24:33.527Z","etag":null,"topics":["command-line-tool","go","golang","json","logs"],"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/globocom.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-01T22:38:33.000Z","updated_at":"2024-10-24T08:32:03.000Z","dependencies_parsed_at":"2023-10-12T00:52:58.084Z","dependency_job_id":null,"html_url":"https://github.com/globocom/prettylog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/globocom/prettylog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fprettylog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fprettylog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fprettylog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fprettylog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globocom","download_url":"https://codeload.github.com/globocom/prettylog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globocom%2Fprettylog/sbom","scorecard":{"id":430075,"data":{"date":"2025-08-11","repo":{"name":"github.com/globocom/prettylog","commit":"8c16e0d609e77b6d54bb459ce50f50609999b0a3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 5/28 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/security.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/globocom/prettylog/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/globocom/prettylog/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/security.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/globocom/prettylog/security.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/security.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/globocom/prettylog/security.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/security.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/globocom/prettylog/security.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T03:07:47.688Z","repository_id":46341075,"created_at":"2025-08-19T03:07:47.688Z","updated_at":"2025-08-19T03:07:47.688Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274166943,"owners_count":25233959,"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-09-08T02:00:09.813Z","response_time":121,"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":["command-line-tool","go","golang","json","logs"],"created_at":"2025-09-08T09:44:07.869Z","updated_at":"2025-09-08T09:44:12.423Z","avatar_url":"https://github.com/globocom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/workflow/status/globocom/prettylog/Go?style=flat-square\"\u003e\n  \u003cimg src=\"https://goreportcard.com/badge/github.com/globocom/prettylog?style=flat-square\"\u003e\n  \u003ca href=\"https://github.com/globocom/prettylog/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/globocom/prettylog?color=blue\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/github/go-mod/go-version/globocom/prettylog?style=flat-square\"\u003e\n  \u003ca href=\"https://pkg.go.dev/github.com/globocom/prettylog\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Go-reference-blue?style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# Prettylog\n\nCommand line tool that displays JSON logs in a human-friendly format.\n\n![Prettylog](https://github.com/globocom/prettylog/raw/master/prettylog.png)\n\n## Installation\n\nGo 1.17+:\n\n    go install github.com/globocom/prettylog@latest\n\nGo 1.16 or older:\n\n    curl https://github.com/globocom/prettylog/raw/master/install.sh | sh\n\nPrettylog will be installed to `$GOPATH/bin`. Make sure to add it to your `PATH` so you can run `prettylog` anywhere.\n\n## How it works\n\nPrettylog parses log messages that contain an arbitrary number of fields and generates a nice output in the\nfollowing format:\n\n    \u003cTIMESTAMP\u003e \u003cLOGGER\u003e \u003cCALLER\u003e \u003cLEVEL\u003e \u003cMESSAGE\u003e \u003cFIELD1\u003e=\u003cVALUE\u003e \u003cFIELD2\u003e=\u003cVALUE\u003e ...\n\nNon-existent fields will be ignored and messages not encoded as JSON will be printed as is.\n\n## Usage\n\nSimply pipe the `stdout` of an application that outputs structured log messages into `prettylog`:\n\n    app | prettylog\n\nYou might need to redirect `stderr` to `stdout` if the application doesn't log to the standard output:\n\n    app 2\u003e\u00261 | prettylog\n\n## Configuration\n\nYou can configure how Prettylog works by creating a `.prettylog.yml` file either locally (per directory)\nor globally (in `$HOME`):\n\n\n```yaml\ntimestamp:\n  key:     \u003cstring\u003e\n  visible: \u003cbool\u003e\n  color:   \u003clist of int\u003e\n  format:  \u003cstring\u003e\n\nlogger:\n  key:     \u003cstring\u003e\n  visible: \u003cbool\u003e\n  padding: \u003cint\u003e\n  color:   \u003clist of int\u003e\n\ncaller:\n  key:     \u003cstring\u003e\n  visible: \u003cbool\u003e\n  padding: \u003cint\u003e\n  color:   \u003clist of int\u003e\n\nlevel:\n  key:     \u003cstring\u003e\n  visible: \u003cbool\u003e\n  padding: \u003cint\u003e\n  colors:\n    debug: \u003clist of int\u003e\n    info:  \u003clist of int\u003e\n    warn:  \u003clist of int\u003e\n    error: \u003clist of int\u003e\n    fatal: \u003clist of int\u003e\n\nmessage:\n  key:     \u003cstring\u003e\n  padding: \u003cint\u003e\n  color:   \u003clist of int\u003e\n```\n\nEach field has its own key and the following properties are available:\n\n| Name | Description |\n| - | - |\n|**key**| Field name. |\n|**visible**| Flag indicating whether the field will be printed. |\n|**padding**| Number of whitespaces that will be added to the right of the field. |\n|**color/colors**| Color attributes. Up to 3 values can be used (fg, bg and effects). More information [here](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors). |\n|**format**| (timestamp field only) Layout that will be used to print timestamp values. It must follow the rules of the [time package](https://golang.org/pkg/time/#pkg-constants). |\n\n## Using with other tools\n\nPrettylog can be used along with other command line tools. Just make sure no buffer is enabled. For instance, `grep`\nhas a `--line-buffered` flag:\n\n    app | grep --line-buffered -v debug | prettylog\n\nIf the tool you want to use buffers its output and does not offer such a flag, you can try\n[stdbuff](https://www.gnu.org/software/coreutils/manual/html_node/stdbuf-invocation.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fprettylog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobocom%2Fprettylog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobocom%2Fprettylog/lists"}