{"id":16103790,"url":"https://github.com/freewall/apollo-console-logger","last_synced_at":"2026-04-27T20:33:24.838Z","repository":{"id":139851036,"uuid":"612627663","full_name":"FreeWall/apollo-console-logger","owner":"FreeWall","description":"A console logger link for Apollo Client. Logs request and response of queries and mutations to console.","archived":false,"fork":false,"pushed_at":"2023-04-01T21:01:07.000Z","size":335,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T06:01:45.487Z","etag":null,"topics":["apollo","apollo-client","apollo-link","graphql","logging"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/@freewall/apollo-console-logger","language":"TypeScript","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/FreeWall.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":"2023-03-11T14:11:00.000Z","updated_at":"2023-04-16T15:11:02.000Z","dependencies_parsed_at":"2023-05-30T06:30:26.638Z","dependency_job_id":null,"html_url":"https://github.com/FreeWall/apollo-console-logger","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Fapollo-console-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Fapollo-console-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Fapollo-console-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeWall%2Fapollo-console-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreeWall","download_url":"https://codeload.github.com/FreeWall/apollo-console-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247424247,"owners_count":20936734,"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":["apollo","apollo-client","apollo-link","graphql","logging"],"created_at":"2024-10-09T18:58:46.463Z","updated_at":"2026-04-27T20:33:24.797Z","avatar_url":"https://github.com/FreeWall.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apollo Console Logger\n\n[![npm version](https://img.shields.io/npm/v/@freewall/apollo-console-logger?color=blue)](https://www.npmjs.com/@freewall/apollo-console-logger)\n[![publish status](https://img.shields.io/github/actions/workflow/status/FreeWall/apollo-console-logger/publish.yml)](https://github.com/FreeWall/apollo-console-logger/releases/latest)\n\nA console logger link for Apollo Client. Logs request and response of queries and mutations to console.\n\n## Installation\n\n```shell\nnpm install @freewall/apollo-console-logger\n```\n\n## Usage\n\n```js\nimport { ConsoleLoggerLink } from '@freewall/apollo-console-logger';\n\nconst link = ApolloLink.from([\n  new ConsoleLoggerLink(),\n  new HttpLink({\n    uri: '...',\n  }),\n]);\n\nconst client = new ApolloClient({\n  link,\n  // ...\n});\n```\n\n### Options\n\n```js\n// default values:\nnew ConsoleLoggerLink({\n  colors: {\n    query: {\n      request: '#E17E00',\n      response: '#A65D00',\n    },\n    mutation: {\n      request: '#E10098',\n      response: '#A5006F',\n    },\n  },\n  multiline: false,\n  responseSize: true,\n  responseTime: true,\n});\n```\n\n## Sample output\n\n![image](/docs/sample-log-output.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreewall%2Fapollo-console-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreewall%2Fapollo-console-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreewall%2Fapollo-console-logger/lists"}