{"id":18656164,"url":"https://github.com/vikramtiwari/asynclog","last_synced_at":"2026-04-29T14:02:39.898Z","repository":{"id":57194408,"uuid":"91152212","full_name":"VikramTiwari/asynclog","owner":"VikramTiwari","description":"logging made easy, useful and scalable","archived":false,"fork":false,"pushed_at":"2020-05-11T17:25:39.000Z","size":3003,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T09:56:50.283Z","etag":null,"topics":["colors","easy-to-use","error-reporting","event-tracking","google-cloud","logging","nodejs","stacktrace"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VikramTiwari.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":"2017-05-13T05:40:26.000Z","updated_at":"2020-06-03T17:33:11.000Z","dependencies_parsed_at":"2022-09-01T00:24:50.667Z","dependency_job_id":null,"html_url":"https://github.com/VikramTiwari/asynclog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VikramTiwari/asynclog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikramTiwari%2Fasynclog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikramTiwari%2Fasynclog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikramTiwari%2Fasynclog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikramTiwari%2Fasynclog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VikramTiwari","download_url":"https://codeload.github.com/VikramTiwari/asynclog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VikramTiwari%2Fasynclog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261823755,"owners_count":23215142,"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":["colors","easy-to-use","error-reporting","event-tracking","google-cloud","logging","nodejs","stacktrace"],"created_at":"2024-11-07T07:22:14.423Z","updated_at":"2026-04-29T14:02:34.864Z","avatar_url":"https://github.com/VikramTiwari.png","language":"JavaScript","funding_links":["https://www.paypal.me/vikramtiwari/5"],"categories":[],"sub_categories":[],"readme":"# asynclog\n\nLogging made easy, useful and scalable\n\n[![Build Status](https://travis-ci.org/VikramTiwari/asynclog.svg?branch=master)](https://travis-ci.org/VikramTiwari/asynclog) [![NPM Version](https://img.shields.io/npm/v/asynclog.svg)](https://www.npmjs.com/package/asynclog) [![NPM Download](https://img.shields.io/npm/dm/asynclog.svg)](https://www.npmjs.com/package/asynclog) [![Greenkeeper badge](https://badges.greenkeeper.io/VikramTiwari/asynclog.svg)](https://greenkeeper.io/)\n\n## Features\n\n- Easy to use\n- External transport\n- Event tracking\n\n## How to use\n\n- Include package in your project\n\n``` sh\nnpm install --save asynclog\n# or, if you are using yarn\nyarn add asynclog\n```\n\n- Start using\n\n``` javascript\nconst log = require('asynclog')('myApp')\n\nfunction hello () {\n  log('Logging made', 'easy,', 'useful', 'and scalable.')\n  log.warn('Not all problems are solved.')\n  log.info('And we are actively working to solve them.')\n  log.error('Issues:', 'https://github.com/VikramTiwari/asynclog/issues')\n  log.trace('Include stacktraces, they make it easier to debug.')\n  log.event(0, 'Category', 'Action', 'Label', 0)\n}\n\nhello()\n```\n\n- Enable logging namespace while running program\n\n``` bash\nASYNCLOG_NAMESPACE=* node example.js\n```\n\n[Logs Image]\n\n## External log providers\n\n- Google Cloud\n\n``` bash\n# Set ENV variables before running project\nLOG_TRANSPORT=google-cloud\nGCLOUD_PROJECT=ivikramtiwari # use your project id\n```\n\n## Event Tracking\n\n- Google Analytics\n\n``` bash\n# Set ENV variables before running project\nEVENT_TRACKING=google-analytics\nGA_TRACKING_ID=UA-20640332-8 # use your tracking id\n```\n\n## Error Reporting\n\n- Google Cloud - Stackdriver Error Reporting\n\n``` bash\n# Set ENV variables before running project\nERROR_TRANSPORT=google-cloud\nERROR_TRANSPORT_CONFIG={\"projectId\":\"ivikramtiwari\",\"ignoreEnvironmentCheck\":false,\"logLevel\":2} # replace with your own config\n```\n\n## Environment Variables\n\n| ENV Variable | Possible Value | Usage |\n|------|----------------|-------|\n| ASYNCLOG_NAMESPACE | * | see all logs |\n| | myNamespace | log for myNamespace |\n| | -myNamespace | don't log myNamespace |\n| LOG_TRANSPORT | `google-cloud` | stream logs to google cloud logging |\n| GCLOUD_PROJECT | your-project-id | required if `google-cloud` was selected as LGO_TRANSPORT |\n| EVENT_TRACKING | `google-analytics` | stream event to google analytics |\n| GA_TRACKING_ID | UA-12345678-9 | required if `google-analytics` was selected as EVENT_TRACKING |\n| ERROR_TRANSPORT | `google-cloud` | stream errors to google cloud's stackdriver error logging |\n| ERROR_TRANSPORT_CONFIG | `{\"projectId\":\"ivikramtiwari\",\"ignoreEnvironmentCheck\":false,\"logLevel\":2}` | required if `google-cloud` was selected as ERROR_TRANSPORT |\n\n\n## Credits\n\n### Developer: [👨‍💻 Vikram Tiwari](https://vikramtiwari.com)\n\nIf you found this library helpful, or learned something from it and want to thank me, consider [buying me a cup of ☕️.](https://www.paypal.me/vikramtiwari/5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikramtiwari%2Fasynclog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvikramtiwari%2Fasynclog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvikramtiwari%2Fasynclog/lists"}