{"id":16812700,"url":"https://github.com/eddywashere/cloggy","last_synced_at":"2025-11-03T18:19:52.131Z","repository":{"id":57200529,"uuid":"62029065","full_name":"eddywashere/cloggy","owner":"eddywashere","description":"A minimal logger object built with debug","archived":false,"fork":false,"pushed_at":"2016-06-27T05:59:57.000Z","size":1,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T20:47:03.900Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddywashere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-27T05:56:42.000Z","updated_at":"2023-03-04T08:34:55.000Z","dependencies_parsed_at":"2022-09-16T15:10:35.134Z","dependency_job_id":null,"html_url":"https://github.com/eddywashere/cloggy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddywashere%2Fcloggy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddywashere%2Fcloggy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddywashere%2Fcloggy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddywashere%2Fcloggy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddywashere","download_url":"https://codeload.github.com/eddywashere/cloggy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244022725,"owners_count":20385134,"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-10-13T10:23:05.225Z","updated_at":"2025-11-03T18:19:52.090Z","avatar_url":"https://github.com/eddywashere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloggy\n\nA minimal debugging utility to replace console statements with [debug](https://github.com/visionmedia/debug) powered logging. This works well with libraries like [redux-logger](https://github.com/evgenyrodionov/redux-logger#logger-object);\n\n## Getting Started\n\n```sh\nnpm install cloggy\n```\n\nIn your code, require cloggy and pass in a namespace for your debug statements.\n\n```js\nimport cloggy from 'cloggy';\n\nconst log = cloggy('app');\n\nlog.info('Doing something');\nlog.error('An error happened');\nlog.debug('Doing something');\nlog.log('Doing something');\nlog.warn('Doing something');\n```\n\nDebugging can be enabled with space or comma-delimited names in the following ways:\n\n- ***Browser***: Open the browser console and set the following local storage item\n    - `localStorage.debug = '*'`\n    - `localStorage.debug = '*,-not_this'`\n    - `localStorage.debug = 'app:*,section:*'`\n- ***Node***: Set `DEBUG` environment variable\n    - `DEBUG=* node app.js`\n    - `DEBUG=*,-not_this node app.js`\n    - `DEBUG=app:*,section:* node app.js`\n\n\nFor more information about `debug`, [check out the docs](https://github.com/visionmedia/debug#usage).\n\n### Methods\n\n The returned debug object contains the following namespaced log statements.\n\n- `info`\n- `debug`\n- `log`\n- `warn`\n- `error`\n\nThere's nothing really special about the different methods other than debug assigning unique colors per function.\n\n### Screenshot\n\nExample running in [redux-logger](https://github.com/evgenyrodionov/redux-logger#logger-object) via custom logger object.\n\n![image](https://cloud.githubusercontent.com/assets/399776/16369944/88544f10-3bf0-11e6-92e3-9589e05c460e.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddywashere%2Fcloggy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddywashere%2Fcloggy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddywashere%2Fcloggy/lists"}