{"id":20253653,"url":"https://github.com/graphile/postgraphile-log-consola","last_synced_at":"2025-07-25T01:06:55.798Z","repository":{"id":88403005,"uuid":"172239843","full_name":"graphile/postgraphile-log-consola","owner":"graphile","description":"Use consola for PostGraphile logging","archived":false,"fork":false,"pushed_at":"2019-02-23T17:50:58.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T23:43:33.667Z","etag":null,"topics":[],"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/graphile.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-23T17:00:33.000Z","updated_at":"2023-04-05T22:54:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b4424e3-b4bd-45ee-9c5c-197e50b56957","html_url":"https://github.com/graphile/postgraphile-log-consola","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphile%2Fpostgraphile-log-consola","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphile%2Fpostgraphile-log-consola/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphile%2Fpostgraphile-log-consola/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphile%2Fpostgraphile-log-consola/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphile","download_url":"https://codeload.github.com/graphile/postgraphile-log-consola/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317726,"owners_count":21083527,"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":[],"created_at":"2024-11-14T10:26:40.392Z","updated_at":"2025-04-10T23:43:37.916Z","avatar_url":"https://github.com/graphile.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgraphile-log-consola\n\nThis [PostGraphile server\nplugin](https://www.graphile.org/postgraphile/plugins/) disables\nPostGraphile's query log and instead uses `consola` for logging.\n\n## Installation\n\n```\nyarn add postgraphile-log-consola\n```\n\n## Usage - library\n\nUse `makePluginHook` to load the plugin; see [the PostGraphile server plugins docs](https://www.graphile.org/postgraphile/plugins/) for more details.\n\n```js\nconst { postgraphile, makePluginHook } = require(\"postgraphile\");\nconst PostgraphileLogConsola = require(\"postgraphile-log-consola\");\n\n// Other server frameworks work similarly\nconst express = require(\"express\");\nconst app = express();\n\nconst pluginHook = makePluginHook([PostgraphileLogConsola]); // 👈\napp.use(\n  postgraphile(process.env.DATABASE_URL, \"public\", {\n    pluginHook, // 👈\n    // ...\n  })\n);\n\napp.listen(process.env.PORT || 3000);\n```\n\n## Usage - CLI\n\nNOTE: `--plugins` must always be **the very first** option you use on the CLI.\n\nAlso note that this plugin only affects the query log, so the other messages the CLI generates are not wrapped.\n\n```\npostgraphile --plugins postgraphile-log-consola -c my_db\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphile%2Fpostgraphile-log-consola","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphile%2Fpostgraphile-log-consola","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphile%2Fpostgraphile-log-consola/lists"}