{"id":24621573,"url":"https://github.com/gofynd/axios-adapter-logger","last_synced_at":"2026-04-18T04:03:33.779Z","repository":{"id":34883236,"uuid":"186796580","full_name":"gofynd/axios-adapter-logger","owner":"gofynd","description":"Adapter Based Logger ","archived":false,"fork":false,"pushed_at":"2022-02-12T10:07:40.000Z","size":104,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-22T02:18:10.388Z","etag":null,"topics":["adapter","axios","axios-plugin","logger","logger-middleware"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/gofynd.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}},"created_at":"2019-05-15T09:42:32.000Z","updated_at":"2020-11-11T10:11:00.000Z","dependencies_parsed_at":"2022-08-08T02:15:32.470Z","dependency_job_id":null,"html_url":"https://github.com/gofynd/axios-adapter-logger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gofynd/axios-adapter-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gofynd%2Faxios-adapter-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gofynd%2Faxios-adapter-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gofynd%2Faxios-adapter-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gofynd%2Faxios-adapter-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gofynd","download_url":"https://codeload.github.com/gofynd/axios-adapter-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gofynd%2Faxios-adapter-logger/sbom","scorecard":{"id":433808,"data":{"date":"2025-08-11","repo":{"name":"github.com/gofynd/axios-adapter-logger","commit":"19e4214652a455cc67049930de73dceb93b0ffb2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.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":"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":"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":"Code-Review","score":0,"reason":"Found 0/15 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":"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'"],"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"}},{"name":"Vulnerabilities","score":0,"reason":"26 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-42xw-2xvc-qx8m","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-4jwp-vfvf-657p","Warn: Project is vulnerable to: GHSA-v8w9-2789-6hhr","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","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-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-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"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-19T04:05:47.976Z","repository_id":34883236,"created_at":"2025-08-19T04:05:47.976Z","updated_at":"2025-08-19T04:05:47.976Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["adapter","axios","axios-plugin","logger","logger-middleware"],"created_at":"2025-01-25T02:23:12.212Z","updated_at":"2026-04-18T04:03:33.764Z","avatar_url":"https://github.com/gofynd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Axios Adaptors Logger\n### [IN DEVELOPERMENT PHASE]\n\n[![npm version](https://badge.fury.io/js/axios-adapter-logger.svg)](https://badge.fury.io/js/axios-adapter-logger)\n[![Build Status](https://travis-ci.org/gofynd/axios-adapter-logger.svg?branch=master)](https://travis-ci.org/gofynd/axios-adapter-logger)\n\nAxios middleware to log request meta into file, databases or queues. this uses [axios interceptors](https://github.com/axios/axios#interceptors) mechanism to get the request information and then normalize it to simple json and then stores in the specified stores. these stores are called plugs. many of the plugs are provided out-of-box or developers can also create thier own or raise PR to this repo too.\n\n## Features\n  - ease of use\n  - out-of-box plugs\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/).\n\nBefore installing, [download and install Node.js](https://nodejs.org/en/download/). Node.js 0.10 or higher is required.\n\nInstallation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```bash\n$ npm install --save axios-adapter-logger\n```\n\n## Available Plugs\n\nBelow are out-box-avaible plugs:\n\n* [Console](#console)\n* [File](#file)\n* [MongoDB](#mongodb)\n* [Postgres](#postgres)\n* ~~Mongoose [todo]~~\n\n### Console\n\n\n```js\nconst axios = require('axios');\nconst AxiosAdapterLogger = require('axios-adapter-logger');\nconst axiosInstance = axios.create();\nAxiosAdapterLogger(axiosInstance, [\n    require('../plug/console')()\n]);\n\naxiosInstance.get('https://postman-echo.com/get?foo1=bar1\u0026foo2=bar2')\n```\n\n### File\n\n```js\nconst axios = require('axios');\nconst AxiosAdapterLogger = require('axios-adapter-logger');\nconst axiosInstance = axios.create();\nconst filePath = \"tmp/request.log\";\nconst options = {\n    format: 'ndjson' // possible options: ndjson or csv\n};\nAxiosAdapterLogger(axiosInstance, [\n    require('axios-adapter-logger/plug/file')(filePath, options)\n]);\n\naxiosInstance.get('https://postman-echo.com/get?foo1=bar1\u0026foo2=bar2')\n```\n\n### MongoDB\n\n```js\nconst MongoClient = require('mongodb').MongoClient;\nconst axios = require('axios');\nconst AxiosAdapterLogger = require('axios-adapter-logger');\nconst axiosInstance = axios.create();\n\nMongoClient.connect(url, { useNewUrlParser: true }, function(err, client) {\n    if(err) {\n        throw err;\n        return;\n    }\n    console.log('Database connected');\n\n    AxiosAdapterLogger(axiosInstance, [\n        require('axios-adapter-logger/plug/mongodb')(client, 'test_database', 'test_req_logs_coll')\n    ]);\n\n    axiosInstance.get('https://postman-echo.com/get?foo1=bar1\u0026foo2=bar2');\n\n});\n\n```\n\n### Postgres [TODO]\n\n\n```js\nconst { Client } = require('pg')\nconst axios = require('axios');\nconst AxiosAdapterLogger = require('axios-adapter-logger');\nconst axiosInstance = axios.create();\n\nconst client = new Client();\n\nAxiosAdapterLogger(axiosInstance, [\n    require('axios-adapter-logger/plug/postgres')(client, 'test-table')\n]);\n\naxiosInstance.get('https://postman-echo.com/get?foo1=bar1\u0026foo2=bar2');\n\n```\n\n\n## Development\nWant to contribute? Great!, Just raise a PR.\n\n\n## Running and testing locally\n\nclone this repo and install npm dependencies, then run following command:\n\n```sh\n$ npm test\n```\n\n## Todos\n\n - Add plugs - Memory, Streams, Mongoose, BigQuery, RedShift etc..\n\n\n## People\n\nMaintainer - [Jigar Dafda](https://github.com/jigardafda)\n\n## License\n\nMIT License\n\nCopyright (c) 2019 Fynd\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgofynd%2Faxios-adapter-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgofynd%2Faxios-adapter-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgofynd%2Faxios-adapter-logger/lists"}