{"id":41100562,"url":"https://github.com/7fffffff/zord","last_synced_at":"2026-01-22T15:09:02.655Z","repository":{"id":57596914,"uuid":"376718538","full_name":"7fffffff/zord","owner":"7fffffff","description":"reorders log event objects from github.com/rs/zerolog for better readability","archived":false,"fork":false,"pushed_at":"2022-08-21T22:54:17.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T15:58:02.855Z","etag":null,"topics":["golang","json","logging","zerolog"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7fffffff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-14T06:00:02.000Z","updated_at":"2022-01-05T06:45:47.000Z","dependencies_parsed_at":"2022-09-16T09:41:28.406Z","dependency_job_id":null,"html_url":"https://github.com/7fffffff/zord","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/7fffffff/zord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7fffffff%2Fzord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7fffffff%2Fzord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7fffffff%2Fzord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7fffffff%2Fzord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7fffffff","download_url":"https://codeload.github.com/7fffffff/zord/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7fffffff%2Fzord/sbom","scorecard":{"id":5827,"data":{"date":"2025-08-11","repo":{"name":"github.com/7fffffff/zord","commit":"00f580a14a10da1a4b5e1fa276887a2e07126928"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":10,"reason":"project is fuzzed","details":["Info: GoBuiltInFuzzer integration found: fuzz_test.go:14"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"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-14T13:31:22.485Z","repository_id":57596914,"created_at":"2025-08-14T13:31:22.485Z","updated_at":"2025-08-14T13:31:22.485Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28664935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["golang","json","logging","zerolog"],"created_at":"2026-01-22T15:08:58.527Z","updated_at":"2026-01-22T15:09:02.647Z","avatar_url":"https://github.com/7fffffff.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zord\n\nzord provides a writer for https://github.com/rs/zerolog that reorders the log\nevent objects for better readability.\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"os\"\n\t\"github.com/7fffffff/zord\"\n\t\"github.com/rs/zerolog\"\n)\n\nfunc main() {\n\tvar logger zerolog.Logger\n\n\t// using zerolog by itself\n\tlogger = zerolog.New(os.Stderr).With().Timestamp().Str(\"service\", \"greeter\").Logger()\n\tlogger.Debug().Int(\"a\", 1).Msg(\"hello, world!\")\n\t// =\u003e {\"level\":\"debug\",\"service\":\"greeter\",\"a\":1,\"time\":\"2006-01-02T15:04:05-07:00\",\"message\":\"hello, world!\"}\n\n\t// let's move some common fields to the front\n\twriter := zord.NewWriter()\n\t//writer.Wr = os.Stderr // default\n\t//writer.FirstKeys = zord.DefaultFirstKeys() // default\n\tlogger = zerolog.New(writer).With().Timestamp().Str(\"service\", \"greeter\").Logger()\n\tlogger.Debug().Int(\"a\", 1).Msg(\"hello, world!\")\n\t// =\u003e {\"time\":\"2006-01-02T15:04:05-07:00\",\"level\":\"debug\",\"message\":\"hello, world!\",\"service\":\"greeter\",\"a\":1}\n\n\t// let's make \"service\" appear after \"level\"\n\twriter = zord.NewWriter()\n\twriter.FirstKeys = []string{\n\t\tzerolog.TimestampFieldName,\n\t\tzerolog.LevelFieldName,\n\t\t\"service\",\n\t\tzerolog.CallerFieldName,\n\t\tzerolog.MessageFieldName,\n\t\tzerolog.ErrorFieldName,\n\t}\n\tlogger = zerolog.New(writer).With().Timestamp().Str(\"service\", \"greeter\").Logger()\n\tlogger.Debug().Int(\"a\", 1).Msg(\"hello, world!\")\n\t// =\u003e {\"time\":\"2006-01-02T15:04:05-07:00\",\"level\":\"debug\",\"service\":\"greeter\",\"message\":\"hello, world!\",\"a\":1}\n}\n```\n\n## Why?\n\nIn development, log lines are a little easier to read when common fields like\nthe timestamp are always in the same place. JSON objects are defined as\nunordered sets of name/value pairs, so rearranging the pairs should not change\nhow objects are interpreted by a downstream system.\n\nIn production scenarios where log output is only ever read by other programs,\nthere's not much point in using zord.Writer.\n\n## Duplicate Keys\n\nzerolog doesn't deduplicate keys and neither does zord.Writer. Duplicate keys\nwill maintain their ordering relative to each other.\n\n## Binary Logs (CBOR)\n\nIf compiled with the binary_log build tag, zord.Writer won't inspect or modify\nthe bytes it's given.\n\n## Efficiency\n\nzord.Writer parses and reassembles the event object, so there's inevitably some\noverhead compared using just zerolog.\n\n```\nLogging an event with 10 fields\nUsing zerolog v1.5.0, the minimum version for this package\nBenchmarkZerologDefault-12         1791386       659.0 ns/op      0 B/op      0 allocs/op\nBenchmarkZerologConsoleWriter-12     85569     13859 ns/op     2457 B/op     88 allocs/op\nBenchmarkZordWriter-12              333338      3575 ns/op     2120 B/op     24 allocs/op\n```\n\n## License\n\nMozilla Public License 2.0:\nhttps://www.mozilla.org/MPL/2.0/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7fffffff%2Fzord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7fffffff%2Fzord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7fffffff%2Fzord/lists"}