{"id":19323475,"url":"https://github.com/salimkayabasi/log4json","last_synced_at":"2026-04-20T14:04:31.050Z","repository":{"id":30852680,"uuid":"126185523","full_name":"salimkayabasi/log4json","owner":"salimkayabasi","description":"JSON layout for log4js","archived":false,"fork":false,"pushed_at":"2022-10-01T02:52:59.000Z","size":670,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-25T04:43:18.043Z","etag":null,"topics":["json","kibana","log4js","logging"],"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/salimkayabasi.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}},"created_at":"2018-03-21T13:47:10.000Z","updated_at":"2022-01-10T01:28:41.000Z","dependencies_parsed_at":"2023-01-14T17:49:31.634Z","dependency_job_id":null,"html_url":"https://github.com/salimkayabasi/log4json","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/salimkayabasi/log4json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimkayabasi%2Flog4json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimkayabasi%2Flog4json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimkayabasi%2Flog4json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimkayabasi%2Flog4json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/salimkayabasi","download_url":"https://codeload.github.com/salimkayabasi/log4json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/salimkayabasi%2Flog4json/sbom","scorecard":{"id":796487,"data":{"date":"2025-08-11","repo":{"name":"github.com/salimkayabasi/log4json","commit":"671fe32eb2fb6a0d8f50d1c42376704d69c2ad74"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","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":"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":10,"reason":"no dangerous workflow patterns detected","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":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/check.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/check.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/commitlint.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/commitlint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/commitlint.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/commitlint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/editorconfig.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/editorconfig.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/editorconfig.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/editorconfig.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/salimkayabasi/log4json/stale.yml/main?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/check.yml:1","Warn: no topLevel permission defined: .github/workflows/commitlint.yml:1","Warn: no topLevel permission defined: .github/workflows/editorconfig.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 30 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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","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-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-23T09:09:15.848Z","repository_id":30852680,"created_at":"2025-08-23T09:09:15.848Z","updated_at":"2025-08-23T09:09:15.848Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32050454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"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":["json","kibana","log4js","logging"],"created_at":"2024-11-10T01:47:43.710Z","updated_at":"2026-04-20T14:04:31.010Z","avatar_url":"https://github.com/salimkayabasi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/log4json.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/log4json)\n\n![Github Actions](https://github.com/salimkayabasi/log4json/actions/workflows/check.yml/badge.svg)\n\n[![Dependency Status](https://david-dm.org/salimkayabasi/log4json.svg)](https://david-dm.org/salimkayabasi/log4json)\n[![DevDependency Status](https://david-dm.org/salimkayabasi/log4json/dev-status.svg)](https://david-dm.org/salimkayabasi/log4json#info=devDependencies)\n[![PeerDependency Status](https://david-dm.org/salimkayabasi/log4json/peer-status.svg)](https://david-dm.org/salimkayabasi/log4json#info=peerDependencies)\n\n# Log4JSON\n\nJSON layout for [log4js](https://www.npmjs.com/package/log4js). Zero dependency and super slim.\n\n## Options\n\n### `separator` (default: `' '`)\nOnce you have multiple messages as in string format, `logger` will concat all of them and needs a separator.\nThis value will be used while concatenating the strings.\n\n### `space` (default: `null`)\nThis parameter will help you to format your output. By default, it will log whole output in one line, otherwise multilines.\nPlease check the `space` argument on [JSON.stringify()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) documentation.\n\n### `omitDefaultCategory`  (default: `true`)\nIn order to reduce the redunnant log size, default category name will be omitted. In case of you want to have category name as always.\nYou can force logger to include category name even when it is deafult\n\n### `props`\nAny of the property names can be overridden. You can override all field names on output.\nDefault propery names are;\n```json\n{\n  \"ts\": \"ts\",\n  \"level\": \"level\",\n  \"category\": \"category\",\n  \"stack\": \"stack\",\n  \"message\": \"message\",\n  \"callStack\": \"callStack\"\n}\n```\n\n## Full Example\n\nhttps://runkit.com/salimkayabasi/log4json\n\n```javascript\nconst log4js = require('log4js');\nconst log4json = require('log4json');\n\naddLayout('log4json', log4json);\n\nconfigure({\n  appenders: {\n    log4json: {\n      type: 'console',\n      layout: {\n        type: 'log4json',\n        separator: ' | ',\n        space: 2,\n        omitDefaultCategory: false,\n        props: {\n          ts: '@timestamp',\n          level: 'lvl',\n          category: 'cat', // default category will be omitted unless \"omitDefaultCategory\" is false\n          stack: 'error', // only available when an error object is being logged\n          message: 'context',\n          callStack: 'stack', // only available when \"enableCallStack\" is true\n        }\n      }\n    }\n  },\n  categories: {\n    default: {\n      appenders: ['log4json'],\n      level: 'all',\n      enableCallStack: true\n    }\n  }\n});\n\nconst logger = getLogger('fancy-category');\nlogger.debug('string logs', 'another string log', {customProp: ['also listed', true]}, 'yet another string');\n```\n\n#### output\n```json\n{\n  \"customProp\": [\n    \"also listed\",\n    true\n  ],\n  \"context\": \"string logs | another string log | yet another string\",\n  \"@timestamp\": \"2021-05-10T15:25:49.130Z\",\n  \"lvl\": \"DEBUG\",\n  \"cat\": \"fancy-category\",\n  \"stack\": \"src/log4json.js:37:8\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalimkayabasi%2Flog4json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalimkayabasi%2Flog4json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalimkayabasi%2Flog4json/lists"}