{"_id":"debuglog","_rev":"11270","name":"debuglog","description":"backport of util.debuglog from node v0.11","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"octet","email":"sam@strongloop.com"}],"time":{"modified":"2025-09-01T08:08:35.000Z","created":"2013-07-05T00:17:35.488Z","1.0.1":"2014-03-05T18:14:59.972Z","1.0.0":"2014-02-13T23:23:45.790Z","0.0.4":"2014-02-13T20:22:35.900Z","0.0.3":"2014-02-13T20:12:45.275Z","0.0.2":"2013-10-29T15:41:31.897Z","0.0.1":"2013-07-05T00:17:35.488Z"},"users":{"garthk":true,"iarna":true,"prabhash1785":true,"j.su":true,"leonzhao":true},"author":{"name":"Sam Roberts","email":"sam@strongloop.com"},"repository":{"type":"git","url":"https://github.com/sam-github/node-debuglog.git"},"versions":{"1.0.1":{"name":"debuglog","version":"1.0.1","description":"backport of util.debuglog from node v0.11","license":"MIT","main":"debuglog.js","repository":{"type":"git","url":"https://github.com/sam-github/node-debuglog.git"},"author":{"name":"Sam Roberts","email":"sam@strongloop.com"},"engines":{"node":"*"},"browser":{"util":false},"bugs":{"url":"https://github.com/sam-github/node-debuglog/issues"},"homepage":"https://github.com/sam-github/node-debuglog","_id":"debuglog@1.0.1","dist":{"shasum":"aa24ffb9ac3df9a2351837cfb2d279360cd78492","size":1920,"noattachment":false,"key":"/debuglog/-/debuglog-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/debuglog/download/debuglog-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"octet","email":"sam@strongloop.com"},"maintainers":[{"name":"octet","email":"sam@strongloop.com"}],"directories":{},"publish_time":1394043299972,"_hasShrinkwrap":false,"_cnpm_publish_time":1394043299972,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.0.0":{"name":"debuglog","version":"1.0.0","description":"backport of util.debuglog from node v0.11","license":"MIT","main":"debuglog.js","repository":{"type":"git","url":"https://github.com/sam-github/node-debuglog.git"},"author":{"name":"Sam Roberts","email":"sam@strongloop.com"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/sam-github/node-debuglog/issues"},"homepage":"https://github.com/sam-github/node-debuglog","_id":"debuglog@1.0.0","dist":{"shasum":"da572fd764f3884679e570d226e1489e0f0015af","size":1897,"noattachment":false,"key":"/debuglog/-/debuglog-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/debuglog/download/debuglog-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"octet","email":"sam@strongloop.com"},"maintainers":[{"name":"octet","email":"sam@strongloop.com"}],"directories":{},"publish_time":1392333825790,"_hasShrinkwrap":false,"_cnpm_publish_time":1392333825790,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.4":{"name":"debuglog","version":"0.0.4","description":"backport of util.debuglog from node v0.11","license":[{"name":"StrongLoop + MIT","url":"http://strongloop.com/license/"},"MIT"],"main":"debuglog.js","repository":{"type":"git","url":"https://github.com/sam-github/node-debuglog.git"},"author":{"name":"Sam Roberts","email":"sam@strongloop.com"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/sam-github/node-debuglog/issues"},"homepage":"https://github.com/sam-github/node-debuglog","_id":"debuglog@0.0.4","dist":{"shasum":"0e705fb949f085aa0aa4d7333640661d060fee17","size":1931,"noattachment":false,"key":"/debuglog/-/debuglog-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/debuglog/download/debuglog-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"octet","email":"sam@strongloop.com"},"maintainers":[{"name":"octet","email":"sam@strongloop.com"}],"directories":{},"publish_time":1392322955900,"_hasShrinkwrap":false,"_cnpm_publish_time":1392322955900,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.3":{"name":"debuglog","version":"0.0.3","description":"backport of util.debuglog from node v0.11","license":[{"name":"StrongLoop","url":"http://strongloop.com/license/"},"MIT"],"main":"debuglog.js","repository":{"type":"git","url":"https://github.com/sam-github/node-debuglog.git"},"author":{"name":"Sam Roberts","email":"sam@strongloop.com"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/sam-github/node-debuglog/issues"},"homepage":"https://github.com/sam-github/node-debuglog","_id":"debuglog@0.0.3","dist":{"shasum":"9944a196d9adf267029db460b4ce1d70b54e8a82","size":1929,"noattachment":false,"key":"/debuglog/-/debuglog-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/debuglog/download/debuglog-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"octet","email":"sam@strongloop.com"},"maintainers":[{"name":"octet","email":"sam@strongloop.com"}],"directories":{},"publish_time":1392322365275,"_hasShrinkwrap":false,"_cnpm_publish_time":1392322365275,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.2":{"name":"debuglog","version":"0.0.2","description":"backport of util.debuglog from node v0.11","license":"MIT","main":"debuglog.js","repository":{"type":"git","url":"https://github.com/sam-github/node-debuglog.git"},"author":{"name":"Sam Roberts","email":"sam@strongloop.com"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/sam-github/node-debuglog/issues"},"_id":"debuglog@0.0.2","dist":{"shasum":"6c0dcf07e2c3f74524629b741668bd46c7b362eb","size":1895,"noattachment":false,"key":"/debuglog/-/debuglog-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/debuglog/download/debuglog-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"octet","email":"sam@strongloop.com"},"maintainers":[{"name":"octet","email":"sam@strongloop.com"}],"directories":{},"publish_time":1383061291897,"_hasShrinkwrap":false,"_cnpm_publish_time":1383061291897,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.1":{"name":"debuglog","version":"0.0.1","description":"backport of util.debuglog from node v0.11","license":"MIT","main":"debuglog.js","repository":{"type":"git","url":"https://github.com/sam-github/debuglog.git"},"author":{"name":"Sam Roberts","email":"sam@strongloop.com"},"engines":{"node":"*"},"bugs":{"url":"https://github.com/sam-github/debuglog/issues"},"_id":"debuglog@0.0.1","dist":{"shasum":"fb1fd676217dcb4e1ba0deeb8efc092de61ae96d","size":1896,"noattachment":false,"key":"/debuglog/-/debuglog-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/debuglog/download/debuglog-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.23","_npmUser":{"name":"octet","email":"sam@strongloop.com"},"maintainers":[{"name":"octet","email":"sam@strongloop.com"}],"directories":{},"publish_time":1372983455488,"_hasShrinkwrap":false,"_cnpm_publish_time":1372983455488,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"# debuglog - backport of util.debuglog() from node v0.11\n\nTo facilitate using the `util.debuglog()` function that will be available when\nnode v0.12 is released now, this is a copy extracted from the source.\n\n## require('debuglog')\n\nReturn `util.debuglog`, if it exists, otherwise it will return an internal copy\nof the implementation from node v0.11.\n\n## debuglog(section)\n\n* `section` {String} The section of the program to be debugged\n* Returns: {Function} The logging function\n\nThis is used to create a function which conditionally writes to stderr\nbased on the existence of a `NODE_DEBUG` environment variable.  If the\n`section` name appears in that environment variable, then the returned\nfunction will be similar to `console.error()`.  If not, then the\nreturned function is a no-op.\n\nFor example:\n\n```javascript\nvar debuglog = util.debuglog('foo');\n\nvar bar = 123;\ndebuglog('hello from foo [%d]', bar);\n```\n\nIf this program is run with `NODE_DEBUG=foo` in the environment, then\nit will output something like:\n\n    FOO 3245: hello from foo [123]\n\nwhere `3245` is the process id.  If it is not run with that\nenvironment variable set, then it will not print anything.\n\nYou may separate multiple `NODE_DEBUG` environment variables with a\ncomma.  For example, `NODE_DEBUG=fs,net,tls`.\n","_attachments":{},"homepage":"https://github.com/sam-github/node-debuglog","bugs":{"url":"https://github.com/sam-github/node-debuglog/issues"},"license":"MIT"}