{"id":13432430,"url":"https://github.com/choojs/choo-log","last_synced_at":"2025-03-16T23:31:20.115Z","repository":{"id":57198223,"uuid":"62824236","full_name":"choojs/choo-log","owner":"choojs","description":"📃 - Development logger for choo","archived":true,"fork":false,"pushed_at":"2017-10-18T14:58:16.000Z","size":449,"stargazers_count":46,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-13T21:00:09.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/choojs.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":"2016-07-07T17:05:27.000Z","updated_at":"2023-01-28T21:33:55.000Z","dependencies_parsed_at":"2022-09-16T13:12:28.971Z","dependency_job_id":null,"html_url":"https://github.com/choojs/choo-log","commit_stats":null,"previous_names":["yoshuawuyts/choo-log"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fchoo-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choojs","download_url":"https://codeload.github.com/choojs/choo-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652700,"owners_count":20325607,"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-07-31T02:01:11.495Z","updated_at":"2025-03-16T23:31:19.840Z","avatar_url":"https://github.com/choojs.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# choo-log [![stability][0]][1]\n[![npm version][2]][3] [![build status][4]][5]\n[![downloads][8]][9] [![js-standard-style][10]][11]\n\n# This project has been deprecated. All functionality has been merged into [choo-devtools](https://github.com/choojs/choo-devtools/). Thanks for passing by!\n\nDevelopment logger for [choo][12].\n\n![screen capture](./screenshot.png)\n\n## Usage\n```js\nvar log = require('choo-log')\nvar choo = require('choo')\n\nvar app = choo()\napp.use(log())\napp.mount('body')\n```\n\n## API\n### `logger = log(opts)`\nCreate a new logger instance. Opts can contain:\n- __timing:__ defaults to `true`. Disable calls to `window.performance` timing\n  API. Timing calls will not run in browsers that don't support it out of the\n  box.\n- __clearResourceTimings:__ defaults to `true`. Disable clearing the\n  [window.performance resourcetimingbuffer][buf] when full. Set to `false` if\n  the buffer is cleared somewhere else.\n- __colors:__ defaults to the default theme of [nanologger][15].\n\n### `emitter.emit('log:\u003clevel\u003e', msg)`\nSend a log event. `choo-log` will pass `log:\u003clevel\u003e` events through to [nanologger](https://github.com/choojs/nanologger). For example:\n\n```js\nemitter.emit('log:info', 'The rain in Spain stays mainly in the plain 🌧')\n```\n\nThese are just normal events, so you can listen to them in addition to them being logged:\n\n```js\nemitter.on('log:debug', function (msg) {\n  // do something with debug message\n})\n```\n\n### `localStorage.setItem('logLevel', \u003clevel\u003e)`\n\nSet the [nanologger log level](https://github.com/choojs/nanologger#level--logloglevel), e.g.:\n\n```js\nlocalStorage.setItem('logLevel','debug')\n```\n\n## Installation\n```sh\n$ npm install choo-log\n```\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square\n[1]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[2]: https://img.shields.io/npm/v/choo-log.svg?style=flat-square\n[3]: https://npmjs.org/package/choo-log\n[4]: https://img.shields.io/travis/choojs/choo-log/master.svg?style=flat-square\n[5]: https://travis-ci.org/choojs/choo-log\n[6]: https://img.shields.io/codecov/c/github/choojs/choo-log/master.svg?style=flat-square\n[7]: https://codecov.io/github/choojs/choo-log\n[8]: http://img.shields.io/npm/dm/choo-log.svg?style=flat-square\n[9]: https://npmjs.org/package/choo-log\n[10]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[11]: https://github.com/feross/standard\n[12]: https://github.com/choojs/choo\n[13]: https://img.shields.io/badge/built%20for%20choo-v4-ffc3e4.svg?style=flat-square\n[14]: https://github.com/choojs/choo\n[15]: https://github.com/choojs/nanologger/blob/master/index.js#L17\n[buf]: https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fchoo-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoojs%2Fchoo-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fchoo-log/lists"}