{"_id":"glogg","_rev":"3343400","name":"glogg","description":"Global logging utility","dist-tags":{"latest":"2.2.0"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"time":{"modified":"2024-07-10T08:45:10.000Z","created":"2014-12-29T01:41:29.255Z","2.2.0":"2024-03-23T22:40:48.184Z","2.1.0":"2024-03-10T03:07:31.500Z","2.0.0":"2022-06-24T21:40:08.199Z","1.0.2":"2018-12-10T20:21:04.943Z","1.0.1":"2018-01-23T22:45:57.291Z","1.0.0":"2015-09-11T01:19:50.649Z","0.0.0":"2014-12-29T01:41:29.255Z"},"users":{"josudoey":true,"antixrist":true,"bryan.ygf":true},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"repository":{"type":"git","url":"git+https://github.com/gulpjs/glogg.git"},"versions":{"2.2.0":{"name":"glogg","version":"2.2.0","description":"Global logging utility","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/glogg.git"},"license":"MIT","engines":{"node":">= 10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"dependencies":{"sparkles":"^2.1.0"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.6","mocha":"^8.4.0","nyc":"^15.1.0"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["global","log","logger","logging","shared"],"_id":"glogg@2.2.0","gitHead":"04a46b2477ce74dcb91d07c69740ebf8b433860c","bugs":{"url":"https://github.com/gulpjs/glogg/issues"},"homepage":"https://github.com/gulpjs/glogg#readme","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"shasum":"956ceb855a05a2aa1fa668d748f2be8e7361c11c","size":2985,"noattachment":false,"key":"/glogg/-/glogg-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glogg/download/glogg-2.2.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glogg_2.2.0_1711233648050_0.9504528248412398"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-23T22:40:48.184Z","publish_time":1711233648184,"_source_registry_name":"default","_cnpm_publish_time":1711233648184},"2.1.0":{"name":"glogg","version":"2.1.0","description":"Global logging utility","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/glogg.git"},"license":"MIT","engines":{"node":">= 10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"dependencies":{"sparkles":"^2.0.0"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.6","mocha":"^8.4.0","nyc":"^15.1.0"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["global","log","logger","logging","shared"],"_id":"glogg@2.1.0","gitHead":"c45c4857e3b7e3c925bf5f7a70c74f9a067a100b","bugs":{"url":"https://github.com/gulpjs/glogg/issues"},"homepage":"https://github.com/gulpjs/glogg#readme","_nodeVersion":"20.5.0","_npmVersion":"9.8.0","dist":{"shasum":"1d9e3bd78468ecd48ea16ea8d2f791535a9aed46","size":2835,"noattachment":false,"key":"/glogg/-/glogg-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glogg/download/glogg-2.1.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glogg_2.1.0_1710040051351_0.7346167098830578"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-10T03:07:31.500Z","publish_time":1710040051500,"_source_registry_name":"default","_cnpm_publish_time":1710040051500},"2.0.0":{"name":"glogg","version":"2.0.0","description":"Global logging utility","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/glogg.git"},"license":"MIT","engines":{"node":">= 10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha --async-only"},"dependencies":{"sparkles":"^2.0.0"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.6","mocha":"^8.4.0","nyc":"^15.1.0"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["global","log","logger","logging","shared"],"gitHead":"ad09a43a26cb4b5b88112d61fd86aca6682729c9","bugs":{"url":"https://github.com/gulpjs/glogg/issues"},"homepage":"https://github.com/gulpjs/glogg#readme","_id":"glogg@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.11.0","dist":{"shasum":"5b69c867f8b02a503b0653ed80c37ceba0a69361","size":2758,"noattachment":false,"key":"/glogg/-/glogg-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glogg/download/glogg-2.0.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glogg_2.0.0_1656106808001_0.1281717288443649"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-24T21:41:14.723Z","publish_time":1656106808199,"_cnpm_publish_time":1656106808199},"1.0.2":{"name":"glogg","version":"1.0.2","description":"Global logging utility","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"http://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/glogg.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha --async-only","cover":"istanbul cover _mocha --report lcovonly","coveralls":"npm run cover && istanbul-coveralls"},"dependencies":{"sparkles":"^1.0.0"},"devDependencies":{"eslint":"^2.13.0","eslint-config-gulp":"^3.0.1","expect":"^1.20.2","istanbul":"^0.4.3","istanbul-coveralls":"^1.0.3","mocha":"^3.5.3"},"keywords":["global","log","logger","logging","shared"],"gitHead":"6e0fdff7642ec485e14abc6d142580bcc493d6ed","bugs":{"url":"https://github.com/gulpjs/glogg/issues"},"homepage":"https://github.com/gulpjs/glogg#readme","_id":"glogg@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"dist":{"shasum":"2d7dd702beda22eb3bffadf880696da6d846313f","size":2825,"noattachment":false,"key":"/glogg/-/glogg-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/glogg/download/glogg-1.0.2.tgz"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glogg_1.0.2_1544473264804_0.8854767146691764"},"_hasShrinkwrap":false,"publish_time":1544473264943,"_cnpm_publish_time":1544473264943},"1.0.1":{"name":"glogg","version":"1.0.1","description":"Global logging utility","author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"contributors":[],"repository":{"type":"git","url":"git+https://github.com/js-cli/glogg.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha --async-only"},"dependencies":{"sparkles":"^1.0.0"},"devDependencies":{"eslint":"^1.7.3","eslint-config-gulp":"^2.1.0","expect":"^1.20.2","mocha":"^2.5.3"},"keywords":["global","log","logger","logging","shared"],"gitHead":"7def97d04e23a7f2f55bdf310212f28bfde09098","bugs":{"url":"https://github.com/js-cli/glogg/issues"},"homepage":"https://github.com/js-cli/glogg#readme","_id":"glogg@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"dist":{"shasum":"dcf758e44789cc3f3d32c1f3562a3676e6a34810","size":2393,"noattachment":false,"key":"/glogg/-/glogg-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glogg/download/glogg-1.0.1.tgz"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glogg-1.0.1.tgz_1516747557172_0.19143295707181096"},"directories":{},"publish_time":1516747557291,"_hasShrinkwrap":false,"_cnpm_publish_time":1516747557291},"1.0.0":{"name":"glogg","version":"1.0.0","description":"Global logging utility","author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"contributors":[],"repository":{"type":"git","url":"git+https://github.com/undertakerjs/glogg.git"},"license":"MIT","engines":{"node":">= 0.10"},"main":"index.js","files":["LICENSE","index.js"],"scripts":{"test":"lab -cvL --globals store@sparkles"},"dependencies":{"sparkles":"^1.0.0"},"devDependencies":{"@phated/eslint-config-iceddev":"^0.2.1","code":"^1.5.0","eslint":"^1.3.1","eslint-plugin-mocha":"^0.5.1","eslint-plugin-react":"^3.3.2","lab":"^5.16.0"},"keywords":["global","log","logger","logging","shared"],"gitHead":"2683314c5bb5473e0d492418974b111f366168db","bugs":{"url":"https://github.com/undertakerjs/glogg/issues"},"homepage":"https://github.com/undertakerjs/glogg#readme","_id":"glogg@1.0.0","_shasum":"7fe0f199f57ac906cf512feead8f90ee4a284fc5","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.36","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"7fe0f199f57ac906cf512feead8f90ee4a284fc5","size":2412,"noattachment":false,"key":"/glogg/-/glogg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glogg/download/glogg-1.0.0.tgz"},"directories":{},"publish_time":1441934390649,"_cnpm_publish_time":1441934390649,"_hasShrinkwrap":false},"0.0.0":{"name":"glogg","version":"0.0.0","description":"Global logging utility","main":"index.js","scripts":{"test":"lab -cv"},"repository":{"type":"git","url":"https://github.com/phated/glogg"},"keywords":["global","log","logging","logger","shared"],"author":{"name":"Blaine Bublitz","email":"blaine@iceddev.com","url":"http://iceddev.com/"},"license":"MIT","bugs":{"url":"https://github.com/phated/glogg/issues"},"homepage":"https://github.com/phated/glogg","dependencies":{"sparkles":"git://github.com/phated/sparkles"},"devDependencies":{"code":"^1.2.1","lab":"^5.1.1"},"gitHead":"5e61145d350457e74fbf2dd1a134257e391c968a","_id":"glogg@0.0.0","_shasum":"5be6efd4f8dddfcac5f5e6605069734b65a68337","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"phated","email":"blaine@iceddev.com"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"}],"dist":{"shasum":"5be6efd4f8dddfcac5f5e6605069734b65a68337","size":1797,"noattachment":false,"key":"/glogg/-/glogg-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glogg/download/glogg-0.0.0.tgz"},"directories":{},"publish_time":1419817289255,"_cnpm_publish_time":1419817289255,"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n  <a href=\"https://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# glogg\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nGlobal logging utility.\n\n## Usage\n\n```js\nvar getLogger = require('glogg');\n\nvar logger = getLogger('my-namespace');\n\n// logs strings\nlogger.debug('The MOST verbose!');\nlogger.info('Some important info');\nlogger.warn('All the warnings to you');\nlogger.error('OH NO! SOMETHING HAPPENED!');\n\n// supports util.format!\nlogger.info('%s style!', 'printf');\n\n// log anything\nlogger.debug({ my: 'obj' });\nlogger.info([1, 2, 3]);\n\n// somewhere else\nlogger.on('info', function (msg) {\n  // do something with msg\n});\n\n// must be handled to avoid crashing process\nlogger.on('error', function (msg) {\n  // now it won't crash\n});\n```\n\n## API\n\n**Note: This module makes no assumptions about the log levels and they will always\nbe emitted. If you are looking to filter some out, your listeners will need to have\nextra logic.**\n\n### getLogger([namespace])\n\nCreate a new logger at the given namespace (or the default if no namespace is provided).\nReturns an augmented [`sparkles`](https://github.com/phated/sparkles) EventEmitter object\nwith 4 methods: `debug()`, `info()`, `warn()` and `error()`. When called, these methods emit\nan event with the same name. If the first argument is a string, the arguments\nare passed through node's `util.format()` before being emitted. Other parts\nof a node program can get the logger by namespace and listen for the events to\nbe emitted.\n\n#### logger.debug(msg, ...args)\n\nEmits a `debug` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\nIf the first argument is not a string, all arguments will be emitted directly.\n\n#### logger.info(msg, ...args)\n\nEmits a `info` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\nIf the first argument is not a string, all arguments will be emitted directly.\n\n#### logger.warn(msg, ...args)\n\nEmits a `warn` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\nIf the first argument is not a string, all arguments will be emitted directly.\n\n#### logger.error(msg, ...args)\n\nEmits a `error` event with the given `msg`.\n\nIf the first argument is a string, all arguments are passed to node's\n`util.format()` before being emitted.\n\nIf the first argument is not a string, all arguments will be emitted directly.\n\n**Note: You must handle this event in some way or the node process will crash\nwhen an `error` event is emitted.**\n\n#### logger.on(event, fn)\n\nStandard API from node's `EventEmitter`. Use this to listen for events from\nthe logger methods.\n\n## License\n\nMIT\n\n<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/glogg.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/glogg\n[npm-image]: https://img.shields.io/npm/v/glogg.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/glogg/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/glogg/dev.yml?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/glogg\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glogg/master.svg?style=flat-square\n<!-- prettier-ignore-end -->\n","_attachments":{},"homepage":"https://github.com/gulpjs/glogg#readme","bugs":{"url":"https://github.com/gulpjs/glogg/issues"},"license":"MIT"}