{"id":19843158,"url":"https://github.com/khmm12/knex-tiny-logger","last_synced_at":"2025-05-01T20:32:11.179Z","repository":{"id":38240353,"uuid":"86803024","full_name":"khmm12/knex-tiny-logger","owner":"khmm12","description":"Zero config queries logger for knex","archived":false,"fork":false,"pushed_at":"2023-01-11T02:36:15.000Z","size":1016,"stargazers_count":29,"open_issues_count":17,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T06:44:31.308Z","etag":null,"topics":["debug","javascript","knex","logger","logging","nodejs","nodejs-logging"],"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/khmm12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-31T09:36:21.000Z","updated_at":"2024-12-18T09:14:14.000Z","dependencies_parsed_at":"2023-02-08T23:17:07.938Z","dependency_job_id":null,"html_url":"https://github.com/khmm12/knex-tiny-logger","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khmm12%2Fknex-tiny-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khmm12%2Fknex-tiny-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khmm12%2Fknex-tiny-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khmm12%2Fknex-tiny-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khmm12","download_url":"https://codeload.github.com/khmm12/knex-tiny-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251941016,"owners_count":21668652,"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","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":["debug","javascript","knex","logger","logging","nodejs","nodejs-logging"],"created_at":"2024-11-12T12:37:46.486Z","updated_at":"2025-05-01T20:32:10.733Z","avatar_url":"https://github.com/khmm12.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# knex-tiny-logger\n\n[![](https://img.shields.io/npm/v/knex-tiny-logger.svg?style=flat-square)](https://npmjs.com/package/knex-tiny-logger)\n[![](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://standardjs.com)\n\n\u003e Zero config queries logger for knex\n\n![](https://cloud.githubusercontent.com/assets/4437249/24814454/5215bd9c-1bda-11e7-8574-5f93042395dd.png)\n\n## Usage\n\nInstall the package:\n\n```bash\n$ yarn add knex-tiny-logger\n```\n\nApply `knex-tiny-logger` to `knex` instance:\n\n```js\nimport createKnex from 'knex'\nimport knexTinyLogger from 'knex-tiny-logger'\n\nconst knexOptions = {} // Your knex config\nconst knex = createKnex(knexOptions)\nknexTinyLogger(knex)\n\n// alternative\n// knex-tiny-logger returns knex instance\n// so you can do like this\nconst knex = knexTinyLogger(createKnex(knexOptions))\n```\n\n## Advanced usage\n\nBy default `knex-tiny-logger` uses `console.log`, but you can specify any logger which your prefer:\n```js\nimport createKnex from 'knex'\nimport knexTinyLogger from 'knex-tiny-logger'\nimport initDebug from 'debug'\n\nconst awesomeLogger = initDebug('my-project:knex')\nconst knexOptions = {} // Your knex config\nconst knex = createKnex(knexOptions)\nknexTinyLogger(knex, { logger: awesomeLogger })\n```\n\nAlso you can disable bindings:\n```js\nknexTinyLogger(knex, { bindings: false })\n```\n\n## License\n\n[MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhmm12%2Fknex-tiny-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhmm12%2Fknex-tiny-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhmm12%2Fknex-tiny-logger/lists"}