{"id":39877761,"url":"https://github.com/bitrefill/logger","last_synced_at":"2026-01-18T14:26:59.858Z","repository":{"id":52139957,"uuid":"125217707","full_name":"bitrefill/logger","owner":"bitrefill","description":"A logging module to unify logging across all repositories","archived":false,"fork":false,"pushed_at":"2023-04-23T19:07:48.000Z","size":52,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-10-24T03:57:43.152Z","etag":null,"topics":["json","logger","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bitrefill.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-03-14T13:35:45.000Z","updated_at":"2025-09-01T06:44:32.000Z","dependencies_parsed_at":"2022-08-24T00:41:16.322Z","dependency_job_id":null,"html_url":"https://github.com/bitrefill/logger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bitrefill/logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrefill%2Flogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrefill%2Flogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrefill%2Flogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrefill%2Flogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitrefill","download_url":"https://codeload.github.com/bitrefill/logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitrefill%2Flogger/sbom","scorecard":{"id":240672,"data":{"date":"2025-08-11","repo":{"name":"github.com/bitrefill/logger","commit":"7e33416eaa2d3f78b62573fc25d988f59af14a5a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/25 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":"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":"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":"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":"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":"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":"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 '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":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3"],"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-17T06:38:12.991Z","repository_id":52139957,"created_at":"2025-08-17T06:38:12.991Z","updated_at":"2025-08-17T06:38:12.991Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["json","logger","nodejs"],"created_at":"2026-01-18T14:26:59.267Z","updated_at":"2026-01-18T14:26:59.844Z","avatar_url":"https://github.com/bitrefill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logger\n\n### Install\n```\nnpm install @bitrefill/logger\n```\n\n### Usage\n```js\nconst log = require('@bitrefill/logger')('my-module');\n\nlog.info('Regular operation');\nlog.warn('Something is off but not critical');\nlog.error('Someone should look into this');\n\nlog.info('With an object', { my: { deep: 'object' } });\nlog.info('A number', 100000000);\nlog.info('Multiple arguments:', 'isProduction', true, 'amount', 27);\n\nlog.error(new Error('Oops!'));\nlog.error('Error with a message', new Error('Oops, I did it again!'));\nlog.error('Error within an object, error prop', { error: new Error('An error!'), amount: 0.00081 });\nlog.error('Error within an object, err prop', { err: new Error('An err!'), amount: 0.00081 });\nlog.error('Error within an object, e prop', { e: new Error('An e!'), amount: 0.00081 });\n```\nWill output:\n```\n{\"level\":30,\"time\":1521079820856,\"msg\":\"Regular operation\",\"namespace\":\"my-module\",\"v\":1}\n{\"level\":40,\"time\":1521079820858,\"msg\":\"Something is off but not critical\",\"namespace\":\"my-module\",\"v\":1}\n{\"level\":50,\"time\":1521079820858,\"msg\":\"Someone should look into this\",\"namespace\":\"my-module\",\"v\":1}\n\n{\"level\":30,\"time\":1521080308250,\"msg\":\"With an object\",\"namespace\":\"my-module\",\"my\":{\"deep\":\"object\"},\"v\":1}\n{\"level\":30,\"time\":1521080308250,\"msg\":\"A number 100000000\",\"namespace\":\"my-module\",\"v\":1}\n{\"level\":30,\"time\":1521080308250,\"msg\":\"Multiple arguments: isProduction true amount 27\",\"namespace\":\"my-module\",\"v\":1}\n\n{\"level\":50,\"time\":1521080917001,\"msg\":\"Oops!\",\"namespace\":\"my-module\",\"type\":\"Error\",\"stack\":\"Error: Oops!\\n    at Object.\n\u003canonymous\u003e...\",\"v\":1}\n{\"level\":50,\"time\":1521080917001,\"msg\":\"Error with a message\",\"namespace\":\"my-module\",\"type\":\"Error\",\"stack\":\"Error: Oops,\nI did it again!\\n    at Object.\u003canonymous\u003e...\",\"v\":1}\n{\"level\":50,\"time\":1521080917001,\"msg\":\"Error within an object, error prop\",\"namespace\":\"my-module\",\"error\":{\"type\":\"Error\"\n,\"message\":\"An error!\",\"stack\":\"Error: An error!\\n    at Object.\u003canonymous\u003e...\"},\"amount\":0.00081,\"v\":1}\n{\"level\":50,\"time\":1521080917002,\"msg\":\"Error within an object, err prop\",\"namespace\":\"my-module\",\"err\":{\"type\":\"Error\",\"me\nssage\":\"An err!\",\"stack\":\"Error: An err!\\n    at Object.\u003canonymous\u003e...\"},\"amount\":0.00081,\"v\":1}\n{\"level\":50,\"time\":1521080917002,\"msg\":\"Error within an object, e prop\",\"namespace\":\"my-module\",\"e\":{\"type\":\"Error\",\"messag\ne\":\"An e!\",\"stack\":\"Error: An e!\\n    at Object.\u003canonymous\u003e...\"},\"amount\":0.00081,\"v\":1}\n```\nNote: For brevity the stack has been shortened but in practice the entire error stack will be logged as a string.\n### Config\nThe library is configurable through ENV vars.\n\n#### `APP_NAME`\nEvery log line will output the value of this variable. Use for different app instances. Eg.: `api`, `worker`, etc. .\n\n#### `NODE_ENV`\nIf equal to `development` the logs will be pretty printed for easier debugging on localhost.\n```\n[2018-03-15T02:41:38.460Z] INFO: Regular operation\n    namespace: \"my-module\"\n```\nNote: `NODE_ENV=test` will silent all logs\n\n### CLI\n\nWe provide a command line interface that can be used to parse Heroku live tail into an easy to read format.\n\nTo use the command line tool, you can install the module globally:\n```\nnpm install -g @bitrefill/logger\n```\n\nThen pipe the Heroku live tail output:\n```\nheroku logs -t -a my-app | logger\n```\n\n#### Options\n\n##### `-i, --include`\nWhich JSON properties to include. Specify one or more property names, separated by commas. By default all JSON properties are included.\n\n### License\nLicensed under the MIT License, Copyright © 2018 Airfill Prepaid AB.\n\nSee [LICENSE](./LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrefill%2Flogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitrefill%2Flogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitrefill%2Flogger/lists"}