{"id":42813620,"url":"https://github.com/hxsf/ezlogs","last_synced_at":"2026-01-30T06:00:03.396Z","repository":{"id":81579627,"uuid":"80794376","full_name":"hxsf/ezlogs","owner":"hxsf","description":"EZLogs is an simple and light tool for log for nodejs.","archived":false,"fork":false,"pushed_at":"2018-12-28T07:10:27.000Z","size":63,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-16T18:40:19.330Z","etag":null,"topics":["log","logger","nodejs","tool"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hxsf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-02-03T03:41:09.000Z","updated_at":"2023-11-30T03:42:20.000Z","dependencies_parsed_at":"2023-05-05T00:34:07.084Z","dependency_job_id":null,"html_url":"https://github.com/hxsf/ezlogs","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":"0.19047619047619047","last_synced_commit":"1e21821e965bb3bee6380ed0e0928ec454807a98"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hxsf/ezlogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxsf%2Fezlogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxsf%2Fezlogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxsf%2Fezlogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxsf%2Fezlogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hxsf","download_url":"https://codeload.github.com/hxsf/ezlogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hxsf%2Fezlogs/sbom","scorecard":{"id":474728,"data":{"date":"2025-08-11","repo":{"name":"github.com/hxsf/ezlogs","commit":"1e21821e965bb3bee6380ed0e0928ec454807a98"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"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":"Code-Review","score":0,"reason":"Found 0/21 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":"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":"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":"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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":0,"reason":"36 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","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-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-19T14:59:25.741Z","repository_id":81579627,"created_at":"2025-08-19T14:59:25.741Z","updated_at":"2025-08-19T14:59:25.741Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28906217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T04:02:34.702Z","status":"ssl_error","status_checked_at":"2026-01-30T04:02:33.562Z","response_time":66,"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":["log","logger","nodejs","tool"],"created_at":"2026-01-30T06:00:02.705Z","updated_at":"2026-01-30T06:00:03.390Z","avatar_url":"https://github.com/hxsf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EZLogs\n\n\u003e EZLogs is an simple and light tool for log\n\n## Usage\n\n1. base\n```javascript\nconst EZlogs = require('ezlogs')\nconst logger = EZlogs() // Default option is logging to console\nlogger.trace('abcd')\nlogger.debug('log1')\nlogger.info('log2')\nlogger.warn('log3')\nlogger.error('log4')\nlogger.fatal('log5')\n```\n\n```\n2017-01-23 10:18:18.131 TRACE   ==\u003e  abcd\n2017-01-23 10:18:18.131 DEBUG   ==\u003e  log1\n2017-01-23 10:18:18.131 INFO    ==\u003e  log2\n2017-01-23 10:18:18.131 WARN    ==\u003e  log3\n2017-01-23 10:18:18.131 ERROR   ==\u003e  log4\n2017-01-23 10:18:18.131 FATAL   ==\u003e  log5\n```\n2. multiple driver\n\n```javascript\nconst EZlogs = require('ezlogs')\nconst logger = EZlogs([{\n    type: 'console',\n    level: 'trace'\n}, {\n    type: 'file',\n    path: './logs-files',\n    filename: 'test_log.log',\n    level: 'error'\n}]) // All to console, and Only error and fatal to file\nlogger.trace('abcd')\nlogger.debug('log1')\nlogger.info('log2')\nlogger.warn('log3')\nlogger.error('log4')\nlogger.fatal('log5')\n```\n\n\n### Options\n\n| name | optional | which driver can use | remark |\n| :---: | :---: | :---: | :------------------------- |\n| type | must | all | which driver to use. |\n| sep | optional | all | between time and message, default is `#`. |\n| level | optional | all | default is all to output, e.g. `level = 'error'`,only `error` and `fatal` can output. |\n| pattern | optional | file-* | default is 'yyyy-MM-dd-HH-mm-ss-SSS'. the pattern in filename |\n| path | must | file-* | `full_file_path = path + filename + pattern + '.log'` |\n| filename | must | file-* | `full_file_path = path + filename + pattern + '.log'` |\n| max_backup | must | file-* | the max number of logs(file) |\n| expire | optional | file-date | How often toggle the log's file, default is `3600 * 24`(one day)  |\n| max_size | optional | file-number | the number of per log file, default is `10000` |\n| max_size | optional | file-size | the size of per log file, The unit is kb, default is `1024` |\n\n### Drivers\n\n1. console\n\n    ```javascript\n    const EZlogs = require('ezlogs')\n    const logger = EZlogs([{\n        type: 'console',\n        level: 'trace',\n    }])\n    ```\n\n2. file\n\n    ```javascript\n    const EZlogs = require('ezlogs')\n    const logger = EZlogs([{\n        type: 'file',\n        path: './logs-files',\n        filename: 'test_log.log',\n    }])\n    ```\n\n3. file-date\n\n    ```javascript\n    const EZlogs = require('ezlogs')\n    const logger = EZlogs([{\n        type: 'file-date',\n        path: './test/logs',\n        filename: 'test',\n        expire: 3600 * 24,\n        max_backup: 7,\n    }])\n    ```\n\n4. file-size\n\n    ```javascript\n    const EZlogs = require('ezlogs')\n    const logger = EZlogs([{\n        type: 'file-size',\n        path: './test/logs',\n        filename: 'test',\n        max_size: 1024 * 10,\n        max_backup: 7\n    }])\n    ```\n\n5. file-number\n\n    ```javascript\n    const EZlogs = require('ezlogs')\n    const logger = EZlogs([{\n        type: 'file-number',\n        path: './test/logs',\n        filename: 'test',\n        max_size: 10 * 10000,\n        max_backup: 7\n    }])\n    ```\n\n## Contributions\n- [hxsf](https://github.com/hxsf)\n- [yourenyouyu](https://github.com/yourenyouyu)\n\n## License\nApache2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxsf%2Fezlogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhxsf%2Fezlogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhxsf%2Fezlogs/lists"}