{"_id":"phnq_log","_rev":"37-e7f61d70700b5d7edfd1d4ff20391131","name":"phnq_log","description":"JavaScript logging utility","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"phnq_log","description":"JavaScript logging utility","homepage":"https://github.com/pgostovic/phnq_log","keywords":["logging","server","client","browser"],"author":{"name":"Patrick Gostovic","email":"pg@phnq.org"},"repository":{"type":"git","url":"git://github.com/pgostovic/phnq_log.git"},"main":"phnq_log.js","version":"1.0.0","_npmUser":{"name":"pgostovic","email":"pg@phnq.org"},"_id":"phnq_log@1.0.0","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.11","_defaultsLoaded":true,"dist":{"shasum":"d072fa261f0ee661757918e4339b5452c1f06b3f","tarball":"https://registry.npmjs.org/phnq_log/-/phnq_log-1.0.0.tgz","integrity":"sha512-IXK9Av63tldZlxA8e1Okny7n2/gIE2vh6t4t/IOoz2NGlhy8kmC5zfEJsMi8ZwdA8emfovhkDKde/EeuQlYf+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCz5EwCfAZQg5A/Q4cEm7R63SXx7UbKIymD+Hhwqv2rIQIhAJMAL347NoUjk5nhkByADSLwTkBlUtBRrksopsX6wsTx"}]},"maintainers":[{"name":"pgostovic","email":"pg@phnq.org"}],"directories":{}},"1.0.1":{"name":"phnq_log","description":"JavaScript logging utility","homepage":"https://github.com/pgostovic/phnq_log","keywords":["phnq","logging","server","client","browser"],"author":{"name":"Patrick Gostovic","email":"pg@phnq.org"},"repository":{"type":"git","url":"git://github.com/pgostovic/phnq_log.git"},"main":"phnq_log.js","version":"1.0.1","dependencies":{"phnq_core":"1.0.x","optimist":"0.3.4"},"readme":"phnq_log\n========\nThe phnq_log module is a simple logging utility. It's generic JavaScript, so\nit works equally well on the server (node.js) and the client (browser).\n\nBasic Usage\n-----------\n\nImport the phnq_log module:\n\n\tvar phnq_log = require(\"phnq_log\");\n\nOr on the client just include the file.\n\nSet the global logging level to one of none, error, warn, info, debug:\n\n\tphnq_log.setLevel(\"debug\");\n\nCreate the logger:\n\n\tvar logger = new phnq_log.Logger(\"MyCategory\");\n\nDo some logging:\n\n\tlogger.debug(\"Hello!\");\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Hello!\n\nPassing objects as arguments:\n\n\tvar obj = { foo: \"bar\", num: 42 };\n\tlogger.debug(\"Object is: \", obj);\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Object is:  { foo: 'bar', num: 42 }\n\n\nScoping Convenience\n-------------------\n\nYou probably want to create one logger per JavaScript file or block of\nfunctionality. You probably also want to wrap your JavaScript file's\ncode in a self-executing function to limit the scope of locally\ndeclared  variables.  For example:\n\n\t(function(){\n\t\tvar x = 5;\n\t\t// x is only visible within this block.\n\t})();\n\nWith phnq_log you can do both in one convenient statement:\n\n\tphnq_log.exec(\"MyCategory\", function(logger)\n\t{\n\t\tlogger.debug(\"Hello!\");\n\t});\n\nWrap each of your JavaScript files like this to get an individual logger for\neach file.\n","_id":"phnq_log@1.0.1","dist":{"shasum":"50b3adc521c399e8c0a4ebd3bc77e1eeee25e009","tarball":"https://registry.npmjs.org/phnq_log/-/phnq_log-1.0.1.tgz","integrity":"sha512-QNPzuRveliMrkUhLAENPgOTRFZXs4+vSC7haVw2TiFPBLW/fhq7M6nsVFi4PS/LZLmCB6bd222ga+cY3auWNgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhAfwWAR9vYxN6w39HGb6yhrvkQ+kgFIDXh5F5Ed+NgAiBr/UeeBqYqGKlLkfzDe0XMG+ZpDfQ5D+DcJtNsJ1thbw=="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"pgostovic","email":"pg@phnq.org"},"maintainers":[{"name":"pgostovic","email":"pg@phnq.org"}],"directories":{}},"1.0.2":{"name":"phnq_log","description":"JavaScript logging utility","homepage":"https://github.com/pgostovic/phnq_log","keywords":["phnq","logging","server","client","browser"],"author":{"name":"Patrick Gostovic","email":"pg@phnq.org"},"repository":{"type":"git","url":"git://github.com/pgostovic/phnq_log.git"},"main":"phnq_log.js","version":"1.0.2","dependencies":{"phnq_core":"1.0.x","optimist":"0.3.4"},"readme":"phnq_log\n========\nThe phnq_log module is a simple logging utility. It's generic JavaScript, so\nit works equally well on the server (node.js) and the client (browser).\n\nBasic Usage\n-----------\n\nImport the phnq_log module:\n\n\tvar phnq_log = require(\"phnq_log\");\n\nOr on the client just include the file.\n\nSet the global logging level to one of none, error, warn, info, debug:\n\n\tphnq_log.setLevel(\"debug\");\n\nCreate the logger:\n\n\tvar logger = new phnq_log.Logger(\"MyCategory\");\n\nDo some logging:\n\n\tlogger.debug(\"Hello!\");\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Hello!\n\nPassing objects as arguments:\n\n\tvar obj = { foo: \"bar\", num: 42 };\n\tlogger.debug(\"Object is: \", obj);\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Object is:  { foo: 'bar', num: 42 }\n\n\nScoping Convenience\n-------------------\n\nYou probably want to create one logger per JavaScript file or block of\nfunctionality. You probably also want to wrap your JavaScript file's\ncode in a self-executing function to limit the scope of locally\ndeclared  variables.  For example:\n\n\t(function(){\n\t\tvar x = 5;\n\t\t// x is only visible within this block.\n\t})();\n\nWith phnq_log you can do both in one convenient statement:\n\n\tphnq_log.exec(\"MyCategory\", function(logger)\n\t{\n\t\tlogger.debug(\"Hello!\");\n\t});\n\nWrap each of your JavaScript files like this to get an individual logger for\neach file.\n","_id":"phnq_log@1.0.2","dist":{"shasum":"c334eac9a6de7c361d66279ad2e98cb15071fe44","tarball":"https://registry.npmjs.org/phnq_log/-/phnq_log-1.0.2.tgz","integrity":"sha512-AZSpz4EwMZs2EPk+ZfSS5w7m0n/T6MeClt4V6r2s15R27YX6H2BJmRyeqTk0d9+pmb86QS/KqL05M+xhahzJVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXw0ktAGakth+E4fMSfRqIDT3r/3nNp6zBv/e9NwMtpQIgWa012jdPkfg4mRE0GC2mStQs/Ivwj4ZpfGZjqI/drE4="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"pgostovic","email":"pg@phnq.org"},"maintainers":[{"name":"pgostovic","email":"pg@phnq.org"}],"directories":{}},"1.0.3":{"name":"phnq_log","description":"JavaScript logging utility","homepage":"https://github.com/pgostovic/phnq_log","keywords":["phnq","logging","server","client","browser"],"author":{"name":"Patrick Gostovic","email":"pg@phnq.org"},"repository":{"type":"git","url":"git://github.com/pgostovic/phnq_log.git"},"main":"phnq_log.js","version":"1.0.3","dependencies":{"phnq_core":"1.0.x","optimist":"0.3.4"},"readme":"phnq_log\n========\nThe phnq_log module is a simple logging utility. It's generic JavaScript, so\nit works equally well on the server (node.js) and the client (browser).\n\nBasic Usage\n-----------\n\nImport the phnq_log module:\n\n\tvar phnq_log = require(\"phnq_log\");\n\nOr on the client just include the file.\n\nSet the global logging level to one of none, error, warn, info, debug:\n\n\tphnq_log.setLevel(\"debug\");\n\nCreate the logger:\n\n\tvar logger = new phnq_log.Logger(\"MyCategory\");\n\nDo some logging:\n\n\tlogger.debug(\"Hello!\");\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Hello!\n\nPassing objects as arguments:\n\n\tvar obj = { foo: \"bar\", num: 42 };\n\tlogger.debug(\"Object is: \", obj);\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Object is:  { foo: 'bar', num: 42 }\n\n\nScoping Convenience\n-------------------\n\nYou probably want to create one logger per JavaScript file or block of\nfunctionality. You probably also want to wrap your JavaScript file's\ncode in a self-executing function to limit the scope of locally\ndeclared  variables.  For example:\n\n\t(function(){\n\t\tvar x = 5;\n\t\t// x is only visible within this block.\n\t})();\n\nWith phnq_log you can do both in one convenient statement:\n\n\tphnq_log.exec(\"MyCategory\", function(logger)\n\t{\n\t\tlogger.debug(\"Hello!\");\n\t});\n\nWrap each of your JavaScript files like this to get an individual logger for\neach file.\n","readmeFilename":"README.md","_id":"phnq_log@1.0.3","dist":{"shasum":"84ee27c56799d08eb852dd321c214378157e8e3e","tarball":"https://registry.npmjs.org/phnq_log/-/phnq_log-1.0.3.tgz","integrity":"sha512-4uWhjIdcgs0HQMYp02t/DHYxbsaMrCMrYskfqeyelVfuRzhpT6JobU4w6tMRdsUrPMdz4VyCEP7vlPNmFo5IEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASey1RMj3EguMVSY9alUY5fMu2PW07kozbBPa/oIkCvAiAe+IcFZpXX1rRUyJIdanu4bGcNrdcXIZfDeBh5wQ4NJw=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"pgostovic","email":"pg@phnq.org"},"maintainers":[{"name":"pgostovic","email":"pg@phnq.org"}]},"1.0.4":{"name":"phnq_log","description":"JavaScript logging utility","homepage":"https://github.com/pgostovic/phnq_log","keywords":["phnq","logging","server","client","browser"],"author":{"name":"Patrick Gostovic","email":"pg@phnq.org"},"repository":{"type":"git","url":"git://github.com/pgostovic/phnq_log.git"},"main":"phnq_log.js","version":"1.0.4","dependencies":{"phnq_core":"1.0.x","optimist":"0.3.4"},"readme":"phnq_log\n========\nThe phnq_log module is a simple logging utility. It's generic JavaScript, so\nit works equally well on the server (node.js) and the client (browser).\n\nBasic Usage\n-----------\n\nImport the phnq_log module:\n\n\tvar phnq_log = require(\"phnq_log\");\n\nOr on the client just include the file.\n\nSet the global logging level to one of none, error, warn, info, debug:\n\n\tphnq_log.setLevel(\"debug\");\n\nCreate the logger:\n\n\tvar logger = new phnq_log.Logger(\"MyCategory\");\n\nDo some logging:\n\n\tlogger.debug(\"Hello!\");\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Hello!\n\nPassing objects as arguments:\n\n\tvar obj = { foo: \"bar\", num: 42 };\n\tlogger.debug(\"Object is: \", obj);\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Object is:  { foo: 'bar', num: 42 }\n\n\nScoping Convenience\n-------------------\n\nYou probably want to create one logger per JavaScript file or block of\nfunctionality. You probably also want to wrap your JavaScript file's\ncode in a self-executing function to limit the scope of locally\ndeclared  variables.  For example:\n\n\t(function(){\n\t\tvar x = 5;\n\t\t// x is only visible within this block.\n\t})();\n\nWith phnq_log you can do both in one convenient statement:\n\n\tphnq_log.exec(\"MyCategory\", function(logger)\n\t{\n\t\tlogger.debug(\"Hello!\");\n\t});\n\nWrap each of your JavaScript files like this to get an individual logger for\neach file.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/pgostovic/phnq_log/issues"},"_id":"phnq_log@1.0.4","dist":{"shasum":"546d78823e696781e13a7d44d70587b071911a66","tarball":"https://registry.npmjs.org/phnq_log/-/phnq_log-1.0.4.tgz","integrity":"sha512-aniUXXwxOfnckoRQHWlXNMhbSQDvgZdr9gKOFScAK6TNkaSD+5NqA97DpQEosTSNdzgyXjPcEyKCPjxSWx+GAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5CjCyk4fzsPmAJBKwlrrssobg0fsTbOrwmnMbu9qbiAiB1UuyQstS1k9LBtqONXNYpAFUgMgY1e3pqtGRfVVcK+Q=="}]},"_from":".","_npmVersion":"1.2.21","_npmUser":{"name":"pgostovic","email":"pg@phranq.com"},"maintainers":[{"name":"pgostovic","email":"pg@phnq.org"}]}},"readme":"phnq_log\n========\nThe phnq_log module is a simple logging utility. It's generic JavaScript, so\nit works equally well on the server (node.js) and the client (browser).\n\nBasic Usage\n-----------\n\nImport the phnq_log module:\n\n\tvar phnq_log = require(\"phnq_log\");\n\nOr on the client just include the file.\n\nSet the global logging level to one of none, error, warn, info, debug:\n\n\tphnq_log.setLevel(\"debug\");\n\nCreate the logger:\n\n\tvar logger = new phnq_log.Logger(\"MyCategory\");\n\nDo some logging:\n\n\tlogger.debug(\"Hello!\");\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Hello!\n\nPassing objects as arguments:\n\n\tvar obj = { foo: \"bar\", num: 42 };\n\tlogger.debug(\"Object is: \", obj);\n\noutput:\n\n\t2012-04-21 10:07:30.920 [DEBUG] MyCategory - Object is:  { foo: 'bar', num: 42 }\n\n\nScoping Convenience\n-------------------\n\nYou probably want to create one logger per JavaScript file or block of\nfunctionality. You probably also want to wrap your JavaScript file's\ncode in a self-executing function to limit the scope of locally\ndeclared  variables.  For example:\n\n\t(function(){\n\t\tvar x = 5;\n\t\t// x is only visible within this block.\n\t})();\n\nWith phnq_log you can do both in one convenient statement:\n\n\tphnq_log.exec(\"MyCategory\", function(logger)\n\t{\n\t\tlogger.debug(\"Hello!\");\n\t});\n\nWrap each of your JavaScript files like this to get an individual logger for\neach file.\n","maintainers":[{"name":"pgostovic","email":"pg@phnq.org"}],"time":{"modified":"2022-06-23T21:13:55.341Z","created":"2012-04-29T14:48:41.492Z","1.0.0":"2012-04-29T14:48:42.005Z","1.0.1":"2012-10-16T19:57:25.917Z","1.0.2":"2012-10-28T14:52:18.364Z","1.0.3":"2012-11-22T03:36:59.335Z","1.0.4":"2013-05-28T17:58:37.101Z"},"author":{"name":"Patrick Gostovic","email":"pg@phnq.org"},"repository":{"type":"git","url":"git://github.com/pgostovic/phnq_log.git"}}