{"id":23674117,"url":"https://github.com/saikatharryc/loopback-bunyan-logger","last_synced_at":"2026-05-19T07:36:04.152Z","repository":{"id":96151287,"uuid":"90741501","full_name":"saikatharryc/loopback-bunyan-logger","owner":"saikatharryc","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-04T01:49:46.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-29T19:25:53.793Z","etag":null,"topics":["bunyan","logger","loopback","loopback-bunyan-logger","loopback-component","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saikatharryc.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-09T12:09:17.000Z","updated_at":"2020-06-04T01:49:48.000Z","dependencies_parsed_at":"2023-03-13T16:36:59.791Z","dependency_job_id":null,"html_url":"https://github.com/saikatharryc/loopback-bunyan-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saikatharryc/loopback-bunyan-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saikatharryc%2Floopback-bunyan-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saikatharryc%2Floopback-bunyan-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saikatharryc%2Floopback-bunyan-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saikatharryc%2Floopback-bunyan-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saikatharryc","download_url":"https://codeload.github.com/saikatharryc/loopback-bunyan-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saikatharryc%2Floopback-bunyan-logger/sbom","scorecard":{"id":795565,"data":{"date":"2025-08-11","repo":{"name":"github.com/saikatharryc/loopback-bunyan-logger","commit":"1376855a65bd9f2fe6d22c824d70f8580f4f85c8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/6 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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: 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":"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 7 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"}}]},"last_synced_at":"2025-08-23T08:50:47.291Z","repository_id":96151287,"created_at":"2025-08-23T08:50:47.291Z","updated_at":"2025-08-23T08:50:47.291Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274427532,"owners_count":25283221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bunyan","logger","loopback","loopback-bunyan-logger","loopback-component","nodejs"],"created_at":"2024-12-29T13:00:08.536Z","updated_at":"2026-05-19T07:35:59.126Z","avatar_url":"https://github.com/saikatharryc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loopback-bunyan-logger\nupdated   {loopback-component-logger}\n \n **incase if you dont want the child node logs. please use the version ^1.1.2 of `loopback-bunyan-looger`.\n \nLogging component for [loopback] using [bunyan] logger with additional loopback specific hooks and log management API\n\n[![NPM](https://nodei.co/npm/loopback-bunyan-logger.png?downloads=true)](https://nodei.co/npm/loopback-bunyan-logger/) [![NPM](https://nodei.co/npm-dl/loopback-bunyan-logger.png?months=1\u0026height=2)](https://nodei.co/npm/loopback-bunyan-logger/)\n\n\n[![Build Status](https://travis-ci.org/saikatharryc/loopback-bunyan-logger.svg?branch=master)](https://travis-ci.org/saikatharryc/loopback-bunyan-logger) [![Greenkeeper badge](https://badges.greenkeeper.io/saikatharryc/loopback-bunyan-logger.svg)](https://greenkeeper.io/)\n\n\n# Features\n\n- Default logger using [bunyan]\n- Can use of custom bunyan [streams] to create root logger\n- Hook: Basic performance instrumentation for remote execution\n- Hook: Log management API (configurable)\n\n# Usage\n\nExample _server.js_:\n\n```js\nvar loopback = require('loopback');\nvar boot = require('loopback-boot');\nvar rootlogger = bunyan.createlogger({name: 'myloopbackAPI'});\nvar logger = require('loopback-bunyan-logger')(rootlogger);\nvar app = module.exports = loopback();\n\n```\n\nIf rootlogger is not provide, the component creates a logger with default\n [bunyan] settings:\n\n```js\nvar loopback = require('loopback');\nvar boot = require('loopback-boot');\nvar logger = require('loopback-bunyan-logger')();\nvar app = module.exports = loopback();\n\n```\n\nChild loggers can be created for model as shown below. By default child loggers\ninherit the log level from root.\n\n```js\n\nvar logger = require('loopback-bunyan-logger')('TestModel');\nmodule.exports = function(TestModel) {\n    logger.debug('Initializing TestModel');\n};\n\n```\n\nTo add hooks and log management API to [loopback], add configuration to component-config.json:\n\n```js\n{\n  \"loopback-component-explorer\": {\n    \"mountPath\": \"/explorer\"\n  },\n  \"loopback-bunyan-logger\": {\n      \"enableAPI\" : true\n  }\n}\n\n```\nMake sure enableHttpContext is set as true in config.json for to allow collection\n of datasources performance within req/res\nIf you dont want expand the child nodes please use version @1.1.2\n# License\n\n[GNU](https://github.com/saikatharryc/loopback-bunyan-logger/blob/master/LICENSE)\n \n# Create Issue\n  Create issue here [here](https://github.com/saikatharryc/loopback-bunyan-logger/issues)\n\n# Roadmap\n- Additional Unit Test and Coverage\n- Integrate with Strongloop Devops tools\n\n# Known Issue\n- datasources performance will not recorded at times when loopback context is null. Noticed this issue when a composite called MongoDB followed by REST. Only MongoDB response time was recorded and REST was missing.\n\n# See Also\n\n- [Loopback][loopback]\n- [bunyan][bunyan]\n\n[bunyan]: https://github.com/trentm/node-bunyan\n[loopback]: http://loopback.io\n[streams]: https://github.com/trentm/node-bunyan#streams\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaikatharryc%2Floopback-bunyan-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaikatharryc%2Floopback-bunyan-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaikatharryc%2Floopback-bunyan-logger/lists"}