{"id":40312387,"url":"https://github.com/kengoldfarb/log","last_synced_at":"2026-01-20T06:36:05.531Z","repository":{"id":38174211,"uuid":"280043938","full_name":"kengoldfarb/log","owner":"kengoldfarb","description":"A simple isomorphic logger - Browser JS, NodeJS, React Native","archived":false,"fork":false,"pushed_at":"2025-01-15T18:24:41.000Z","size":404,"stargazers_count":0,"open_issues_count":20,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-20T12:27:48.729Z","etag":null,"topics":["browser","javascript","logger","logging","nodejs","react","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kengoldfarb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-07-16T03:33:06.000Z","updated_at":"2024-07-24T23:39:44.000Z","dependencies_parsed_at":"2024-05-29T22:15:35.821Z","dependency_job_id":"a4d44e28-4ab0-4b80-b81e-70b6f8d4ef1c","html_url":"https://github.com/kengoldfarb/log","commit_stats":{"total_commits":50,"total_committers":2,"mean_commits":25.0,"dds":"0.19999999999999996","last_synced_commit":"29b7f511ffde3a2f93cc46c6cb3649fd14b2d61e"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/kengoldfarb/log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengoldfarb%2Flog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengoldfarb%2Flog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengoldfarb%2Flog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengoldfarb%2Flog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kengoldfarb","download_url":"https://codeload.github.com/kengoldfarb/log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kengoldfarb%2Flog/sbom","scorecard":{"id":555030,"data":{"date":"2025-08-11","repo":{"name":"github.com/kengoldfarb/log","commit":"29b7f511ffde3a2f93cc46c6cb3649fd14b2d61e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/11 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":"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'","Warn: branch protection not enabled for branch 'dev'","Warn: branch protection not enabled for branch 'prerelease-import-fix'"],"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 22 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":"35 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-wrw9-m778-g6mc","Warn: Project is vulnerable to: GHSA-pp7h-53gx-mx7r","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-x6fg-f45m-jf5q","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-9crc-q9x8-hgqq"],"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-20T12:05:32.753Z","repository_id":38174211,"created_at":"2025-08-20T12:05:32.753Z","updated_at":"2025-08-20T12:05:32.753Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":["browser","javascript","logger","logging","nodejs","react","react-native"],"created_at":"2026-01-20T06:36:05.470Z","updated_at":"2026-01-20T06:36:05.525Z","avatar_url":"https://github.com/kengoldfarb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple isomorphic logger\n\nSimple console logger that works both server and client side.\n\n## Installation\n\n```\nyarn install @kengoldfarb/log\n```\n\n## Simple Usage\n\n```js\nconst log = require('log')\n\nlog.setOptions({\n\tlevel: 'debug'\n})\n\nlog.warn('Something went wrong')\n```\n\n## Typescript usage\n\n```ts\nimport log, { LogLevel } from '@kengoldfarb/log'\n\nlog.setOptions({\n\tlevel: LogLevel.Debug\n})\n\nlog.debug('Hello')\n```\n\n## Levels\n\nThe default logging level is `warn`. Use `log.setOptions()` to change it.\n\n```js\nlog.trace('log at level trace')\nlog.debug('log at level debug')\nlog.info('log at level info')\nlog.warn('log at level warn')\nlog.error('log at level error')\nlog.crit('log at level crit')\nlog.fatal('log at level fatal')\nlog.superInfo('log at level superInfo')\n```\n\n## Full list of options\n\n```ts\n/** The log level */\nlevel?: LogLevel;\n\n/** Whether to log using colors. Default true */\nuseColors?: boolean;\n\n/** Whether to log as JSON. Default false */\nasJSON?: boolean;\n\n/** A custom adapter that will be called with log messages. If not set, console.log is used */\ncustomAdapter?: LogAdapter;\n\n/** Whether to show file path / line numbers for all logs instead of just debug and trace. Enabling this will incur a slight performance penalty. */\nshowLineNumbersForAll?: boolean;\n\n/**\n* If this is a module, set the namespace so logs can be selectively turned on.\n*\n* For example, if the module is named @kengoldfarb/foo\n*\n* You can turn on debugging by setting the environment variable:\n* DEBUG=@kengoldfarb/foo\n* or with a wildcard\n* DEBUG=@kengoldfarb/*\n*\n* You can also specify the level:\n* DEBUG=@kengoldfarb/foo~trace,@kengoldfarb/bar~crit\n*\n* By default, when a namespace is set, the level is set to \"warn\"\n*\n* */\nnamespace?: string;\n```\n\n\n\n## Credit\n\nBased on:\n\n- https://github.com/barbershop/iso-log\n- https://github.com/sprucelabsai/spruce-log\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkengoldfarb%2Flog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkengoldfarb%2Flog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkengoldfarb%2Flog/lists"}