{"id":48250199,"url":"https://github.com/litert/logger.js","last_synced_at":"2026-04-04T20:50:01.306Z","repository":{"id":47787009,"uuid":"122722112","full_name":"litert/logger.js","owner":"litert","description":"A logs-recorder for LiteRT framework.","archived":false,"fork":false,"pushed_at":"2026-03-31T15:04:23.000Z","size":329,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-31T17:09:54.004Z","etag":null,"topics":["javascript","js","log","logger","logging","nodejs"],"latest_commit_sha":null,"homepage":"https://fenying.net","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-02-24T08:53:38.000Z","updated_at":"2026-03-31T15:04:19.000Z","dependencies_parsed_at":"2026-03-31T17:04:40.349Z","dependency_job_id":null,"html_url":"https://github.com/litert/logger.js","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.24,"last_synced_commit":"2f1e68db2e88e43cfa5c4c9009348379cca401fc"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/litert/logger.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Flogger.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Flogger.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Flogger.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Flogger.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litert","download_url":"https://codeload.github.com/litert/logger.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litert%2Flogger.js/sbom","scorecard":{"id":592753,"data":{"date":"2025-08-11","repo":{"name":"github.com/litert/logger.js","commit":"17fa21b8caf3f46ee8ecb96126ff7f0cd1e1ab32"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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/13 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":"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":"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":"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":"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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"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-20T22:23:15.752Z","repository_id":47787009,"created_at":"2025-08-20T22:23:15.752Z","updated_at":"2025-08-20T22:23:15.752Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"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":["javascript","js","log","logger","logging","nodejs"],"created_at":"2026-04-04T20:50:00.595Z","updated_at":"2026-04-04T20:50:01.267Z","avatar_url":"https://github.com/litert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiteRT/Logger\n\n[![npm version](https://img.shields.io/npm/v/@litert/logger.svg?colorB=brightgreen)](https://www.npmjs.com/package/@litert/logger \"Stable Version\")\n[![License](https://img.shields.io/npm/l/@litert/logger.svg?maxAge=2592000?style=plastic)](https://github.com/litert/logger/blob/master/LICENSE)\n[![node](https://img.shields.io/node/v/@litert/logger.svg?colorB=brightgreen)](https://nodejs.org/dist/latest-v8.x/)\n[![GitHub issues](https://img.shields.io/github/issues/litert/logger.js.svg)](https://github.com/litert/logger.js/issues)\n[![GitHub Releases](https://img.shields.io/github/release/litert/logger.js.svg)](https://github.com/litert/logger.js/releases \"Stable Release\")\n\nA logs writer for LiteRT framework.\n\n## Features\n\n- [x] Log stack trace.\n- [x] Enable/Disable log levels.\n- [x] Custom levels.\n- [x] Custom formats.\n- [x] Custom output drivers.\n\n## Requirement\n\n- TypeScript v5.0.0 (or newer)\n- Node.js v18.0.0 (or newer)\n\n## Installation\n\nInstall by NPM:\n\n```sh\nnpm i @litert/logger --save\n```\n\n## Quick Start\n\nSimple usage:\n\n```ts\n// The imported module is a LoggerFactory singleton object, so you can use it directly.\nimport LoggerFactory from \"@litert/logger\";\n\nconst logger = LoggerFactory.createLogger('Demo');\n\nlogger.info('Hello, world!');\nlogger.warning('Hello, world!');\n\n// Now, just disable a level, and it will not be printed.\nlogger.setLevelOptions({ levels: ['error'], enabled: false });\n\nlogger.error('Hello, world! (WILL NOT BE PRINTED)');\n\n// let's turn on the stack trace, print 2 lines of stack trace.\n//\n// without specifying levels, all levels will be affected.\nlogger.setLevelOptions({ traceDepth: 2 });\n\nlogger.notice('Hello, world!');\n```\n\nUse custom log formatter:\n\n```ts\nimport LoggerFactory from \"@litert/logger\";\n\nLoggerFactory.setLevelOptions({ enabled: true });\n\nconst logger = LoggerFactory.createLogger('Demo');\n\nlogger.setLevelOptions({\n    formatter: function(log, subj, lv, dt, traces): string {\n\n        if (traces?.length) {\n\n            return `${new Date(dt).toISOString()} - ${subj} - ${lv} - ${log}\n\n  ${traces.join('\\n  ')}\n`;\n        }\n\n        return `${new Date(dt).toISOString()} - ${subj} - ${lv} - ${log}`;\n    }\n});\n\nlogger.info('Hello, world!');\nlogger.warning('Hello, world!');\n\nlogger.setLevelOptions({ traceDepth: 2 });\n\nlogger.error('Hello, world!');\n```\n\nMore Examples:\n\n- [Quick Start](./src/examples/quick-start.ts)\n- [Custom log levels](./src/examples/custom-levels.ts)\n- [Custom log formatter](./src/examples/custom-formatter.ts)\n- [Custom log output driver](./src/examples/custom-driver.ts)\n- [Using factory](./src/examples/using-factory.ts)\n\n## License\n\nThis library is published under [Apache-2.0](./LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitert%2Flogger.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitert%2Flogger.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitert%2Flogger.js/lists"}