{"_id":"debuglog","_rev":"55477","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":"2024-06-10T11:32:08.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,"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","tarball":"http://registry-npm.ywwl.com/debuglog/download/debuglog-1.0.1.tgz","integrity":"sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwA1KKr+XCMNCgcB8iBf1772nkTSldubiDaKhbCjcLmAiEArhYVhNIrnwP1LPvfimtlWAILktraBJjvPqi4aO7ZFj4="}],"size":1920,"noattachment":false,"key":"/debuglog/-/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","publish_time":1394043299972,"_cnpm_publish_time":1394043299972},"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","tarball":"http://registry-npm.ywwl.com/debuglog/download/debuglog-1.0.0.tgz","integrity":"sha512-qJ1ay2R/9YqcqG46zAClYdMcEvbRnG0KV63Y4dwBqL4VUcx+dYHYBpdBGkv//yYEqeg1a7XJBP5CxSj1ZBEnwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHtgvPQUFzhQuCNXqvY+LZItwvDDbPLGnQPbF1JzMw6aAiBi4sSIZ3CnVS8RedPhE+HZwNypeajRf7XGSQ4h5rMg1A=="}],"size":1897,"noattachment":false,"key":"/debuglog/-/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","publish_time":1392333825790,"_cnpm_publish_time":1392333825790},"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","tarball":"http://registry-npm.ywwl.com/debuglog/download/debuglog-0.0.4.tgz","integrity":"sha512-D6pLqdG87JvlQmveFeA/MjbEZzGkI99+WJOfKNh29qHls3c+8pO4U5PTJUjZixUOJ/Fos5raPF4XvvlU+mv3kQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCs+lgFXShw4wAKiwe5De0WxLUGDnbjRbBIotrcouZWgIgcUC2G8hV0BipenT5ZLgQ6RBO6h7UK0ZV/k9xUf1lTpc="}],"size":1931,"noattachment":false,"key":"/debuglog/-/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","publish_time":1392322955900,"_cnpm_publish_time":1392322955900},"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","tarball":"http://registry-npm.ywwl.com/debuglog/download/debuglog-0.0.3.tgz","integrity":"sha512-XEviwl2WdJIwOJn/3cB/MMVcjbEF+uoEA/BmKbXipGk9K/8IP8FIUKxCkAlxwS7L2ERlsTcrC3Eq/36qpMrZsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHRpEFpgVoqzfsGP8GDYK1+3VZvDbvUlZugdGiNpnyJQIgFCcHJkJLevtWIcW9NmdqcYKorUCxGoM2lLMTtiAKidQ="}],"size":1929,"noattachment":false,"key":"/debuglog/-/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","publish_time":1392322365275,"_cnpm_publish_time":1392322365275},"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","tarball":"http://registry-npm.ywwl.com/debuglog/download/debuglog-0.0.2.tgz","integrity":"sha512-R6Bl6JxzWVrquXohdoHkyGMgaL8esUXhSzB6WUfSX1N+1dFg30Yo9gshTu7ExV6ntKN4VoJFw8zVdPsVVYGmKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICNOnky04Dpl1+6kVimNvTiFStu2Ptb9sttGMGGfT0U2AiBbvLES5fKin6H0938xpNTfFYV8dQ8/g3xUVYh7pS2JbA=="}],"size":1895,"noattachment":false,"key":"/debuglog/-/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","publish_time":1383061291897,"_cnpm_publish_time":1383061291897},"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","tarball":"http://registry-npm.ywwl.com/debuglog/download/debuglog-0.0.1.tgz","integrity":"sha512-MlBwqb7ZsS+yyjY9gyUlfLaLfwNqVqeeXpnh0KOgpIM7CqLXM4G1qvs8JjNTFzkZNdvowouylS/CdNWHPjfFog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICw26UPjbGpc96q5814I8Lx/KvVCl51ybv7TNJn/9jgrAiBDfJJJG5a3MrpVxTpbm2tbexAbPTXgfedG4wLE59CwaQ=="}],"size":1896,"noattachment":false,"key":"/debuglog/-/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":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","publish_time":1372983455488,"_cnpm_publish_time":1372983455488}},"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"}