{"_id":"mkslogger","_rev":"9-72df8e2b1345e8d7de24d4674d112cca","name":"mkslogger","description":"Simple logging library, forked from github.com/schloerke/nlogger","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"mkslogger","description":"Simple logging library, forked from nlogger.","version":"0.0.1","homepage":"https://github.com/maks/nlogger","keywords":["log","logging","logger","custom","color"],"author":{"name":"Maksim Lin and Barret Schloerke and Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/maks/nlogger.git"},"_npmUser":{"name":"maks","email":"maks@manichord.com"},"_id":"mkslogger@0.0.1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.2","_defaultsLoaded":true,"dist":{"shasum":"4225fbffa0b36e974f243e439a4e9d59a0bd5f27","tarball":"https://registry.npmjs.org/mkslogger/-/mkslogger-0.0.1.tgz","integrity":"sha512-UgKo77cLDRkN4mkNY3nvQMUjIdQlf6poo4CbXCrWzxAQNnFKQxVZng1c/Z076I03uxuLxfDSV2Z/G5HENcigyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP+CjO/8kR52/5PbiU+ZjQ35L6Dng99gLzGQTDJ8Go5wIhANI3hf75MaqI0tJV6tSToCrGqNlRpKyU/yP+xpC7MMW3"}]},"maintainers":[{"name":"maks","email":"maks@manichord.com"}]},"0.0.4":{"name":"mkslogger","description":"Simple logging library, forked from github.com/schloerke/nlogger","version":"0.0.4","homepage":"https://github.com/maks/mkslogger","keywords":["log","logging","logger","custom","color"],"author":{"name":"Maksim Lin and Barret Schloerke and Igor Urminček"},"main":"index.js","repository":{"type":"git","url":"git://github.com/maks/mkslogger.git"},"bugs":{"url":"https://github.com/maks/mkslogger/issues"},"_id":"mkslogger@0.0.4","dist":{"shasum":"ed4e04ee8c00f0782e1ac50db8a94fe6e6c2676b","tarball":"https://registry.npmjs.org/mkslogger/-/mkslogger-0.0.4.tgz","integrity":"sha512-Aya1OQc4cLAIBqHf8LXwNj5EtEciEnG4sQgUMVXHxiRAtyBobonszAfUjU9j0Ja4w0ETr0ABzewD7AZUofRoCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbyEL6uG/nRBt6m0P8Pfxz2y9o7GqSwgAenwwmE9nYCQIgKmq+XzKzcaaEvIF5sIxqpUvT0vU0ZIpMTA3LPgEcBCY="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"maks","email":"maks@manichord.com"},"maintainers":[{"name":"maks","email":"maks@manichord.com"}]}},"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  var logger = require('./nlogger').logger(module);\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  logger.info(message);\n  logger.info(message, parameter...);\n\nStrings `{}` in message will be replaced by appropriate parameter. See examples.  \n\nExamples\n--------\n\n  var logger = require('./nlogger').logger(module);\n  logger.info('Info message');\n  logger.debug('Debug message');\n  logger.warn('Warning message');\n  logger.error('Error message');\n  logger.trace('Trace message');\n  logger.info('Array = {}, Object = {}', [1, 2, 3, 4], {one: 1, two: 2});\n\n  \nOutput samples\n--------------\n\n  2010-10-02 20:39:03.570 INFO  main:5 - Info message\n  2010-10-02 20:39:03.588 DEBUG main:6 - Debug message\n  2010-10-02 20:39:03.589 WARN  main:7 - Warning message\n  2010-10-02 20:39:03.590 ERROR main:8 - Error message\n  2010-10-02 20:39:03.590 TRACE main:9 - Trace message\n  2010-10-02 20:39:03.590 INFO  main:10 - Array = [ 1, 2, 3, 4 ], Object = { one: 1, two: 2 }\n  \n  2010-10-02 20:59:12.496 INFO  my-modules/first:3 - Message from first module from line #3\n  2010-10-02 20:59:12.514 INFO  my-modules/second:10 - Message from second module from line #10\n  2010-10-02 20:59:12.515 INFO  fake-module-name:3 - Message from third module from line #3\n  2010-10-02 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  {\n    \"color\": \"auto\",\n    \"level\": {\n      \"*\": \"debug\",\n      \"my-modules/first\": \"info\"\n    }\n  }\n  \n* `color` - print message in color? [true, false, \"auto\"]\n* `level.*` - default debug level\n* `level.yourModuleName` - debug level for specified module\n\nPossible debug levels are `trace`, `debug`, `info`, `warn`, `error`.\n\nYou can also use single letter alias's of the above - eg. log.d()\n\nChanges\n-------\no.4.0 - Added single letter aliases\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-------\nReleased under MIT License. Enjoy and Fork!\n","maintainers":[{"name":"maks","email":"maks@manichord.com"}],"time":{"modified":"2022-06-19T23:38:38.893Z","created":"2011-12-06T05:14:51.832Z","0.0.1":"2011-12-06T05:14:55.904Z","0.0.4":"2014-06-07T02:19:45.981Z"},"author":{"name":"Maksim Lin and Barret Schloerke and Igor Urminček"},"repository":{"type":"git","url":"git://github.com/maks/mkslogger.git"},"homepage":"https://github.com/maks/mkslogger","keywords":["log","logging","logger","custom","color"],"readmeFilename":"README.md","bugs":{"url":"https://github.com/maks/mkslogger/issues"}}