{"_id":"nlogger","_rev":"18-e07695a59b4a1595f08c4b6e06261344","name":"nlogger","description":"Logging lib that prints module name and line number","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"nlogger","description":"Logging lib that prints module name and line number","version":"0.1.0","homepage":"https://github.com/igo/nlogger","keywords":["log","logging","logger"],"author":{"name":"Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/igo/nlogger.git"},"_id":"nlogger@0.1.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.6","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"9a7c17ca95dc627d159f749a758c3fa6fa03415c","tarball":"https://registry.npmjs.org/nlogger/-/nlogger-0.1.0.tgz","integrity":"sha512-SuSvuQEK09ta+red54J/bU6EUe3keUjdHAQsMb2hDF2MNG518G794zyC5toqE+wOXvO6wodfeZ/kPtKi6JIg6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb5oKZzk2zuiiw2rR7P6TSbSyLQw5Hf7mf1Rd7PnAOJwIgPwIEaEoLQEVoRoJi0XUDiqaGrhqfmuIcBv4H2cfOOME="}]}},"0.2.0":{"name":"nlogger","description":"Logging lib that prints module name and line number","version":"0.2.0","homepage":"https://github.com/igo/nlogger","keywords":["log","logging","logger"],"author":{"name":"Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/igo/nlogger.git"},"_id":"nlogger@0.2.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.8","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"23df714ed8cc783e07acdf3280115adbf001befd","tarball":"https://registry.npmjs.org/nlogger/-/nlogger-0.2.0.tgz","integrity":"sha512-FXAOwbj+AAVm/ilbisYonItrSDKVZQEIE535edeaBi1fHi9YTnmfTWLMRBoF29u6r/wpEBRAtrTKmMpUuzSS5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBvf1AtiCidnqWbcsSzPOCc3zkjN78QeqjBp3qmgzToBAiEA84J1ornLFhLNlrfdQ+/SPr2yIofgB6KBjfmC0W+vGUc="}]}},"0.3.0":{"name":"nlogger","description":"Logging lib that prints module name and line number","version":"0.3.0","homepage":"https://github.com/igo/nlogger","keywords":["log","logging","logger"],"author":{"name":"Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/igo/nlogger.git"},"_id":"nlogger@0.3.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.8","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"ff9b277a92a87c5ee97bcdb5d92bb378bc2f2330","tarball":"https://registry.npmjs.org/nlogger/-/nlogger-0.3.0.tgz","integrity":"sha512-dC9STz+UCJqXMKgQQ0Q6EjPAbyMBu+STooT/OLKH5qA1R7nR2Ko7g9V47RoVJmz41FCRdutILh5J3GuRayWmog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBsNMds3BfEl7JdiwNBbmMcH9aWSUordGh0V+V5dMQ5QIgarXh4uLpVlspv4PHMTwHDdCVOySXBStz56vI3rvi+cY="}]}},"0.3.1":{"name":"nlogger","description":"Logging lib that prints module name and line number","version":"0.3.1","homepage":"https://github.com/igo/nlogger","keywords":["log","logging","logger"],"author":{"name":"Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/igo/nlogger.git"},"_npmUser":{"name":"igo","email":"igor.urmincek@gmail.com"},"_id":"nlogger@0.3.1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"2831ebebdd88d5cfcb19c8b6ad2acef034e2e388","tarball":"https://registry.npmjs.org/nlogger/-/nlogger-0.3.1.tgz","integrity":"sha512-77blamhSbCZR7Q9ifqGp8WZ92po5oMmwVVxJp+KjqSpBX/p7nEe8Vw3MlqX+DU4NVXX0zsZ/p+r7Uu/37Rwyvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRTauMotXF3UtaxR4dfrpjrZdYQZz7rFEbppVRluMVRwIhANEjiUo56yMGBH+9X/yRzvSLYw6q8ESsaxO6JcwUho4Q"}]},"maintainers":[{"name":"igo","email":"igo@inspired.sk"}]},"0.4.0":{"name":"nlogger","description":"Logging lib that prints module name and line number","version":"0.4.0","homepage":"https://github.com/igo/nlogger","keywords":["log","logging","logger"],"author":{"name":"Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/igo/nlogger.git"},"_id":"nlogger@0.4.0","dist":{"shasum":"32e7d965232a3f662c462f9ae213759b5e270ab1","tarball":"https://registry.npmjs.org/nlogger/-/nlogger-0.4.0.tgz","integrity":"sha512-yjHpLCeZWEYKHBEDTMTwgSY3EMSU50CnUjwkYWxHbXoxIK7KvPKFjPL0gnO/Kqqw857QUxpvtzSocldWf8OlKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcj7KxQgFNPLSKpGXAXpcCu2ZhJ8aa9IxpgSVMCY/+wgIhAOteymTw93X++BOGZ1tQmZOklcIguAqeuh9By8oUZ/cb"}]},"maintainers":[{"name":"igo","email":"igo@inspired.sk"}]},"1.0.0":{"name":"nlogger","description":"Logging lib that prints module name and line number","version":"1.0.0","homepage":"https://github.com/igo/nlogger","keywords":["log","logging","logger"],"author":{"name":"Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/igo/nlogger.git"},"gitHead":"152c2f788b7895acb4b012074058ddf3337227fe","bugs":{"url":"https://github.com/igo/nlogger/issues"},"_id":"nlogger@1.0.0","scripts":{},"_shasum":"c9785de2d510843a36ba5c02e67e0fcada8328b6","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"igo","email":"igor.urmincek@gmail.com"},"maintainers":[{"name":"igo","email":"igo@inspired.sk"}],"dist":{"shasum":"c9785de2d510843a36ba5c02e67e0fcada8328b6","tarball":"https://registry.npmjs.org/nlogger/-/nlogger-1.0.0.tgz","integrity":"sha512-WBMtK7kaip9QWxt+t2WTPj+cGqAg5wDmpeXK0UeJ6GSfIJIDwdN97mujctQ8eC56U9YbQN63FYBr6+JTKLiW6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG92Izsgid0v9lYFGlc6cA1JSfo+4h64ZNsTkUTV+aQGAiEA14S3irLdMdT516wcrAIGR/HYttFJ7wK7xME8E8Z/TO0="}]}}},"maintainers":[{"name":"igo","email":"igo@inspired.sk"}],"time":{"modified":"2022-06-21T10:41:59.440Z","created":"2011-04-25T09:55:06.313Z","0.1.0":"2011-04-25T09:55:06.802Z","0.2.0":"2011-06-14T21:31:50.188Z","0.3.0":"2011-06-30T18:56:56.985Z","0.3.1":"2012-08-10T14:04:00.056Z","0.4.0":"2012-10-17T19:22:58.468Z","1.0.0":"2015-04-05T08:58:52.171Z"},"author":{"name":"Igor Urminček"},"repository":{"type":"git","url":"git://github.com/igo/nlogger.git"},"readme":"nlogger\n===========\n\nnlogger is a Node.js logging library that can\n\n* print messages with module name and current line number so you know from where it was called\n* print messages in color\n* print parameters in message\n* be configured from file\n\n\nUsage\n-----\nUse npm or download. Then add to your code:\n\n```javascript\nvar logger = require('nlogger').logger(module);\n```\n\n*module* is object defined automatically by Node.js. If you don't want automatic module names, replace it with your desired string name.\n\n```javascript\nlogger.info(message);\nlogger.info(message, variable, message, variable...);\n```\n\nExamples\n--------\n\n```javascript\nvar logger = require('nlogger').logger(module);\nlogger.info('Info message');\nlogger.debug('Debug message');\nlogger.warn('Warning message');\nlogger.error('Error message');\nlogger.trace('Trace message');\nlogger.info('Array = ', [1, 2, 3, 4], ', Object = ', {one: 1, two: 2});\n```\n\t\nOutput samples\n--------------\n\n```\n2015-02-23 20:39:03.570 INFO  main:5 - Info message\n2015-02-23 20:39:03.588 DEBUG main:6 - Debug message\n2015-02-23 20:39:03.589 WARN  main:7 - Warning message\n2015-02-23 20:39:03.590 ERROR main:8 - Error message\n2015-02-23 20:39:03.590 TRACE main:9 - Trace message\n2015-02-23 20:39:03.590 INFO  main:10 - Array = [ 1, 2, 3, 4 ], Object = { one: 1, two: 2 }\n\n2015-02-23 20:59:12.496 INFO  my-modules/first:3 - Message from first module from line #3\n2015-02-23 20:59:12.514 INFO  my-modules/second:10 - Message from second module from line #10\n2015-02-23 20:59:12.515 INFO  fake-module-name:3 - Message from third module from line #3\n2015-02-23 20:59:12.516 INFO  <unknown>:3 - Message from fourth module from line #3\n```\n\nConfiguration\n-------------\nnlogger can load optional configuration file nlogger.json which looks like:\n\n```javascript\n{\n\t\"color\": \"auto\",\n\t\"level\": {\n\t\t\"*\": \"debug\",\n\t\t\"my-modules/first\": \"info\"\n\t}\n}\n```\n\t\n* `color` - print message in color? [true, false, \"auto\"]\n* `level.*` - default debug level\n* `level.yourModuleName` - log level for specified module\n\nPossible log levels are `trace`, `debug`, `info`, `warn`, `error`.\n\nChanges\n-------\n1.0.0 - Compatibility with latest node.js 0.12.x\n\n0.4.0 - Logging methods parameters changed\n\n0.3.1 - Fixed util dependencies\n\n0.3.0 - Added parameters support to logging methods\n\n0.2.0 - Added configuration file support\n\n0.1.0 - First npm release\n\n\nLicense\n-------\nCommercial license available at http://iostock.com/nlogger\n","homepage":"https://github.com/igo/nlogger","keywords":["log","logging","logger"],"bugs":{"url":"https://github.com/igo/nlogger/issues"},"readmeFilename":"README.md"}