{"_id":"js-logger","_rev":"55-b0c951ac92ed29a6266fff42e5bb7c54","name":"js-logger","description":"Lightweight, unobtrusive, configurable JavaScript logger","dist-tags":{"latest":"1.6.1","next":"1.7.0-next.d6040b4"},"versions":{"0.1.0":{"name":"js-logger","version":"0.1.0","description":"Lightweight, unobtrusive, configurable JavaScript logger.","main":"./src/logger.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/jonnyreeves/js-logger.git"},"keywords":["js-logger","logging","javascript"],"author":{"name":"John Reeves"},"license":"MIT","bugs":{"url":"https://github.com/jonnyreeves/js-logger/issues"},"_id":"js-logger@0.1.0","dist":{"shasum":"4f1be49e75c0f8926ddb38f6f990b2151758f6fc","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.1.0.tgz","integrity":"sha512-9c6+FwWpe3OpSY6CJerthZdqFFrpTlpQhTSQN3bs3KTssIUdT0l4fmzeanhgigQL4WXc4pTIYoq0N76wFZEvZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkiMc+dA0AGjSNunV//fyPJlYYsl7hYfknZ5NnpsRdRAiBb6sPgDKgx1Su8Xe0gVxDnI9259cDLk28j28nHoKqcxg=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"calaniz","email":"cesar@userfox.com"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"}],"directories":{}},"0.9.5":{"name":"js-logger","version":"0.9.5","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"build/logger.js","devDependencies":{"gulp":"~3.5.2","gulp-util":"~2.2.14","gulp-uglify":"~0.2.1","gulp-replace":"~0.2.0","gulp-clean":"~0.2.4","gulp-rename":"~1.0.0","gulp-qunit":"~0.3.3","gulp-jshint":"~1.4.0","gulp-size":"~0.3.1"},"_id":"js-logger@0.9.5","dist":{"shasum":"acf617737a3b686b3f8b44cb7077e273362d0ecd","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.9.5.tgz","integrity":"sha512-FuDO88ZkctKTHn6C4uNkf4Lf1GqsQ55w/XPnoX9OWNnEfQQfMmUppldBXhY8KjGon40g81JrFkySFO4GA7CJrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAY/6mgWGg7AVXZNaGIMTK4FFq05IyRkybgZS+FYZJwAIhAKRGXrppZhcWIy+/Vdch9UNcQMTYc2V2n72/WeUqbyf4"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{}},"0.9.6":{"name":"js-logger","version":"0.9.6","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"build/logger.js","devDependencies":{"gulp":"~3.5.2","gulp-util":"~2.2.14","gulp-uglify":"~0.2.1","gulp-replace":"~0.2.0","gulp-clean":"~0.2.4","gulp-rename":"~1.0.0","gulp-qunit":"~0.3.3","gulp-jshint":"~1.4.0","gulp-size":"~0.3.1"},"_id":"js-logger@0.9.6","dist":{"shasum":"eec5b31abc31c21ea3aa721f6e1a004cf7afa962","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.9.6.tgz","integrity":"sha512-UMsVkdAsZRccfE7ioTL9tvp/MZz23ROYrJPUROQ9upMrYh/D4ipXs0WIOM9H2othcn1VbW2aGnCb6ZhGOM3nsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHaPwzNSY0xc9AzeX78LRR66dyLOwwCadutEN1Hl1LCcAiEAwFVeCw3RLcVlA1+3p6EwiSMjnak+A50v5Prw/7FULPw="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{}},"0.9.9":{"name":"js-logger","version":"0.9.9","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"build/logger.js","devDependencies":{"gulp":"~3.5.2","gulp-util":"~2.2.14","gulp-uglify":"~0.2.1","gulp-replace":"~0.2.0","gulp-rename":"~1.0.0","gulp-qunit":"~0.3.3","gulp-jshint":"~1.4.0","gulp-size":"~0.3.1","gulp-git":"~0.4.3"},"_id":"js-logger@0.9.9","dist":{"shasum":"ff5d2a1e21244072e28563d90d9cc7ceec28f4d8","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.9.9.tgz","integrity":"sha512-N3lrzDzrfIvdOxX57IUUcIn+/mYZka2+m13tDZHktvn39yRh3zz62hOEPYkO6TJoacnxsz4dmuu7XLgk/1VOIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXqs4M5vTi4YWKcl4Fn5JkfuKGnyRHvLDqT+o3+lvc5wIhAIISWzeEDrPpSC2La2n/YyjHB2L9I2fR0Z+vux8qS0Or"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{}},"0.9.10":{"name":"js-logger","version":"0.9.10","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","devDependencies":{"gulp":"~3.5.2","gulp-util":"~2.2.14","gulp-uglify":"~0.2.1","gulp-replace":"~0.2.0","gulp-rename":"~1.0.0","gulp-qunit":"~0.3.3","gulp-jshint":"~1.4.0","gulp-size":"~0.3.1","gulp-git":"~0.4.3"},"_id":"js-logger@0.9.10","dist":{"shasum":"492efb997036dee42551197673dd0e5b88b99405","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.9.10.tgz","integrity":"sha512-3/lpbFdUcIlIOdJHMZr/LNDW20jffPAJK1mmWs4DqWPZylADjL/CCa3YIPrBHyCviz0dz7c9OKeJUBjdF/yeUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOqaKTAQx6Zlb85bDNjCrgVwiXiNvEIqEMcFo9rOUpyAiEAhLdL/xgQMSEgORbLshcmLJoCqbASxucM0z5APi/6rTs="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{}},"0.9.12":{"name":"js-logger","version":"0.9.12","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint"},"devDependencies":{"gulp":"~3.5.2","gulp-util":"~2.2.14","gulp-uglify":"~0.2.1","gulp-replace":"~0.2.0","gulp-rename":"~1.0.0","gulp-qunit":"~0.3.3","gulp-jshint":"~1.4.0","gulp-size":"~0.3.1","gulp-git":"~0.4.3"},"_id":"js-logger@0.9.12","dist":{"shasum":"056ccd2845020e276d8d6c72639c1bdb3549e78a","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.9.12.tgz","integrity":"sha512-urgvcISgOlIkMS+ht68A4UJJrKez7pTfooLIUPpXcAJphFGPL/MyzQsHHTvOEZctwgtYk3ZJnbjGDv9+I2nD+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC+0beBesjygSGL2NUvI1utCdi10e8rd1l16RcJDG0uOAiAVMQfTNO+URNqh646W+IzmVebigHrB70wF5RQpS4+bwg=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{}},"0.9.13":{"name":"js-logger","version":"0.9.13","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint"},"devDependencies":{"gulp":"~3.5.2","gulp-util":"~2.2.14","gulp-uglify":"~0.2.1","gulp-replace":"~0.2.0","gulp-rename":"~1.0.0","gulp-qunit":"~0.3.3","gulp-jshint":"~1.4.0","gulp-size":"~0.3.1","gulp-git":"~0.4.3"},"_id":"js-logger@0.9.13","dist":{"shasum":"c56cfd9fbee277ec9fcdf7562f65a10373931fb5","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.9.13.tgz","integrity":"sha512-J9adMMuPlL/KogbX9UX8TdLAcIEo5AUspZ7QV5/hU5mormNbN3WcMf+3FNV5T0eV5hO9zOZ38Zy97BZ2V7P6mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCceRvUJZuY/aLWI1OsqzewDpcsxvupB6yNFL5OFjku7wIgN49DwqBP1ZrM2h6Nbs/U00LIMZTtvqPKKQJQRqNPiK8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{}},"0.9.14":{"name":"js-logger","version":"0.9.14","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint"},"devDependencies":{"gulp":"~3.5.2","gulp-util":"~2.2.14","gulp-uglify":"~0.2.1","gulp-replace":"~0.2.0","gulp-rename":"~1.0.0","gulp-qunit":"~0.3.3","gulp-jshint":"~1.4.0","gulp-size":"~0.3.1","gulp-git":"~0.4.3"},"_id":"js-logger@0.9.14","dist":{"shasum":"82700c4b81ad76bdd0db5610cea4c08e2b9643f6","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-0.9.14.tgz","integrity":"sha512-0AU+WfoMbZD11dS05P50Ez9I4iOOUqzCLEHoZODVemXuTt+FZ6t3W/rqC5Occtu9b4088SyiHaRZINwDGzT+XQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIASyN48M2BAvtpeWYjCj4+Zb1CQfZdDv52XQpQK+2F5dAiEA5qEA4dGV83ZOA12uSEiGbSNKlTxmQgkR/bfPrG8iBWI="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{}},"1.0.0":{"name":"js-logger","version":"1.0.0","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.2.1","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"a69d7f762833b2c97fe8cd328b7aedd93252eaf2","_id":"js-logger@1.0.0","_shasum":"5a7fe1cd23db3a5d66c02c31e59e67609776205a","_from":".","_npmVersion":"2.1.14","_nodeVersion":"0.10.35","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"dist":{"shasum":"5a7fe1cd23db3a5d66c02c31e59e67609776205a","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.0.0.tgz","integrity":"sha512-NMo+BtW+cP3v2eSNQqXLGuZc7+CBrE0+zfFFFAW76m98oUy0H3Xi79TwPlLNfLIT1NskKNYRg7k0g2etp6j8pQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHBxnYMN2DKFVqOjeZFXu6sDVZ37BvHJ48iY5NumFYgwIgdHmVQBCy/T02CrgJkYtZy5mWVGg1LUU0cckjKnJ9DkM="}]},"directories":{}},"1.1.0":{"name":"js-logger","version":"1.1.0","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.2.1","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"c3783732e6b1a5ac007e0193005409186059a3a8","_id":"js-logger@1.1.0","_shasum":"18a20321f3ff06c798752ea1e400869077ad6475","_from":".","_npmVersion":"2.1.14","_nodeVersion":"0.10.35","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"dist":{"shasum":"18a20321f3ff06c798752ea1e400869077ad6475","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.1.0.tgz","integrity":"sha512-GU8uREi4wDV1nVRsYAk+6BhEwaKdVAgHC3DNbpH/0EPQjAq1xmAQl+nC4i07cfsp6xRxgBlpFgsUZ1WgSc6gmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDl9INj+0mFT78Xn6/5TPaPIBlFDtC8INBXiiFWK9DS6wIhAK5xYsZVzVXO7iiOgNjsTk6b1hgGtDMLqToVLxyWQKuB"}]},"directories":{}},"1.1.1":{"name":"js-logger","version":"1.1.1","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.2.1","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"f90f33c693dc687da618dcbed1b8cf02ddc5c2bf","_id":"js-logger@1.1.1","_shasum":"84bf9531193d62520a6df7a833328547198d7fe3","_from":".","_npmVersion":"2.1.14","_nodeVersion":"0.10.35","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"dist":{"shasum":"84bf9531193d62520a6df7a833328547198d7fe3","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.1.1.tgz","integrity":"sha512-/vBQz33Ss0+rjp54rxLOZKFaelFlTZxj0KKX6eJe/fTsRM+kGl41jck2MG70IYwDWgeTIzBW8lFXnP/iUyQxaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9B1S6sW7q/qmkr8suRd3LmVt8n+Ip2gzlqNAyQGZZyAIgRPaGYAzE3X/xoiz5koqPDMs/ZngXt9Wv8fWJW8FPl9c="}]},"directories":{}},"1.2.0":{"name":"js-logger","version":"1.2.0","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.2.1","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"85ae318c75aead78eb6f44def382e8cf9b8143a5","_id":"js-logger@1.2.0","_shasum":"9b2002157bc3abae49e01d6377895b660666f83d","_from":".","_npmVersion":"2.13.2","_nodeVersion":"0.12.7","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"dist":{"shasum":"9b2002157bc3abae49e01d6377895b660666f83d","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.2.0.tgz","integrity":"sha512-QE2gTDcNTOcMMvl6zrY+lyaY1rBpNuWAm1mdb5RP2ZNV4bpMBdjcV0QFrKyLDnhz42z3A/bueUR1IvnuOPxaeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAm1KPPWKX7bI1r6cCCn7QXXnu2524GHZl4g541Cd36JAiEAhUukg9bSzMt7zGvXTckQSnJutlp1KxVuP5n27I6d2k8="}]},"directories":{}},"1.3.0":{"name":"js-logger","version":"1.3.0","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint","build":"gulp default"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.2.1","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"073ef2142d7945833b368ee1b1f4005b7db5e88a","_id":"js-logger@1.3.0","_shasum":"de1a1143242710f7ce4da20408348a2a93ebf34d","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"shasum":"de1a1143242710f7ce4da20408348a2a93ebf34d","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.3.0.tgz","integrity":"sha512-LNJAPfl6c7cRQ4HNtCLU4yeGwZBkGPoUe0LZG0uGLkt8imrQ3NST30i0zNbKhghrfFU+sk3epXoFs2Ib+wFAtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOOsJLnoV/5NZnsoZTqOyFVIpaNt2pC9CzVB86vVXNqQIgPvAgXW0aryn2iT7BXbTGBg4jm9rFgducLSWkarW7jKc="}]},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/js-logger-1.3.0.tgz_1467751219555_0.6745326300151646"},"directories":{}},"1.4.0":{"name":"js-logger","version":"1.4.0","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint","build":"gulp default"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.5.0","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"421698e2bcb3eccb8c03ae159285b00942035826","_id":"js-logger@1.4.0","_shasum":"25d9569c86db4535ae2f275ded243c107abad68f","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"shasum":"25d9569c86db4535ae2f275ded243c107abad68f","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.4.0.tgz","integrity":"sha512-4PPKwBxyNr8rA7sZMv9g8/XAOLKGsJ/sk603esQwM4NPt1JIwCa/sd/cS7iio0EPy9ypHHN3gMOJ9+ASdWNbTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdvzsk/Vj574WKWhX5oucfFEktEYQR+w1TENWM0aZCXgIhAJ7ESJNwfCZMemaSA/Fo+nPESawOigiYzJmKS6mOu55u"}]},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger-1.4.0.tgz_1503070605978_0.6164912774693221"},"directories":{}},"1.4.1":{"name":"js-logger","version":"1.4.1","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint","build":"gulp default"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.5.0","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"ba04bca6ab8db9eff9cc1fa6c292a4c629ff3cfa","_id":"js-logger@1.4.1","_shasum":"f0230dc5e84e120f213d6e5a6b767a913d290335","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.10.48","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"shasum":"f0230dc5e84e120f213d6e5a6b767a913d290335","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.4.1.tgz","integrity":"sha512-Grkui+UqYsJqN7nEi4uW+1Kv7pPsWFMHYW1VY2H5u0tNG68saiudIb6D/KorBCAxjIWpJAN0dEnlazJGpd/C8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEa3CliiDE3WiH4pQVVMEZTMMXLuZyQGoN4aTDylNjWtAiEA7xPzh2dXKPuZymT7UJK44jMNNrd83VkXSM5TIaME3i0="}]},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger-1.4.1.tgz_1503130360499_0.7576510210055858"},"directories":{}},"1.5.0":{"name":"js-logger","version":"1.5.0","license":"MIT","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"test":"gulp test lint","build":"gulp default"},"devDependencies":{"gulp":"~3.8.11","gulp-util":"~2.2.14","gulp-uglify":"~1.2.0","gulp-replace":"~0.5.3","gulp-rename":"~1.2.0","gulp-qunit":"~1.5.0","gulp-jshint":"~1.10.0","gulp-size":"~1.2.1","gulp-git":"~1.2.0"},"gitHead":"b34039848385ea24b97629a5544a2db414a15c04","_id":"js-logger@1.5.0","_shasum":"d9052e317836b3e351f5a6a2d83943b8c1ff369d","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.2","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"shasum":"d9052e317836b3e351f5a6a2d83943b8c1ff369d","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.5.0.tgz","integrity":"sha512-Dc2Mt2TTIbW764PbGH8Ua5zQzDBuOqWm+o+y8u+z38PJXFxP6iiHs8kWLPvGbxYxrdLJsHvZ/GZbuqYtC4Zg4A==","fileCount":18,"unpackedSize":349462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbwanMCRA9TVsSAnZWagAA7+wQAJeOPhSPrJrckEhmMefV\nIi4YTJQagtKGAOJU3uSaYv96I5L8FY2OmUtdPuFY16xs+HZea8n6iQiJ9Boe\nGX6zJHvCcpOp/jJi05PKH/gwXGv97SjrwbFIB64rrwuf04y0aFm12Us5Fr1Y\nK9cH1EPmvEGK3vWcaXeoIl4tBripYadkxbRWs+U0ajVkXaGCzbhX8RdGnyIh\nkkvKs7eJywO13CFGmhNLImVK1O+ROED1ISMV1RKTSAf1KgCvBp5s1AabJNxU\nbx3g9kxa19D3qtSBP3pOERqn/9WCww0xdGgUwBds53k94xytK8Q4ssOJfvlP\nhXhgVuaePeztygUk01QJRZxl/e2dkL81H51wplLKX1SwxjwqNLSGheMU5SgU\njVSo/lqVGR5p3V/mKvn21lIu6fTNCNcKRXWnrvofaVBi6hvErr0QAGqGBFEt\nji+G48N569Z4urwlli4dKwnj4CXdLpAGBsHMXwlsGEbKNzoigyjyKAIy0fnq\nO3OthJySTn7tyg8HnapanEvP1cjRYAB/CrfO7k8JttXayfAWSiiwJc8VH6q9\nG2EH7BpiA8dTj92hOZB3Q4jG8cB8Uf8waomUEZ73hBjq3KidhkwVIn+tLXyE\nKEpXN+OV3z2xbwTaHXC07OcNYiS5NoQEO/7yt8y7nhK8S5blkB66INefFmF/\n92A1\r\n=9yBU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSE8ewBy6dp7S66ji097W2MVh5YUVPx2NXmM8qngF9xAiEA+oXnM7Y09Dl8RuyBIyH9KyN4TpmJSbcWvRHYj/uKcQ4="}]},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger_1.5.0_1539418571382_0.837356318806221"},"_hasShrinkwrap":false},"1.6.0":{"name":"js-logger","version":"1.6.0","license":"MIT","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"lint":"jshint --exclude=src/*.min.js src/*.js test-src/*.js","test":"npm run test:unit && npm run test:tsd","test:unit":"node-qunit-phantomjs ./test-src/index.html","test:tsd":"cd test-src/typescript-consumer && tsc --noEmit index","build":"npm run build:version && npm run build:minify","build:minify":"uglifyjs src/logger.js --mangle --compress -o src/logger.min.js","build:version":"cross-env replace -s 'VERSION = \"[^\"]+\"' \"VERSION = \\\"$npm_package_version\\\"\" src/logger.js"},"devDependencies":{"cross-env":"^5.2.0","jshint":"^2.9.6","node-qunit-phantomjs":"^2.0.0","replace":"^1.0.0","rimraf":"^2.6.2","typescript":"^3.1.3","uglify-js":"^3.4.9"},"gitHead":"2b20aabd11a6d4d559c19ca3b7cc61ee53daa584","_id":"js-logger@1.6.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"integrity":"sha512-K4kt2AdD0jUYINbe00BPPpsL65u/rdYOgfaBBVWm/mid+ANk7qxDnoXgKI5ilm49Sjmach2Dzlc+5VxKdRA3tw==","shasum":"7abae5cfaf208c965f3ef20754533bb9e79c7aef","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.6.0.tgz","fileCount":21,"unpackedSize":350230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbz5Z2CRA9TVsSAnZWagAAQ74P/ROlov7Oh/vFiybIUX6q\nxGWVpCW32Pchr5pAcYFMG0YZHOt6kbR5OyQxe7Y4iyTmV9UDEONNi3X3ZMzk\nWZSaCBrpxZXQROtBtDNfcg0c6J1Tnd1bvTc97bw1SFRAY6mkxsNpvJ1/VR5d\n83icEA7NBNCukHtpJRAYDD0UsL+qm/NWOOUNfYtUNTdEfu/B5hAuI0JZMLmE\nor2pgHcq1pA+8vOS3bYZfli8R9Xnn2gdguZuQW7M9O/1+mHG6i4oUpIkvR5H\nK841mmpjlDC9nbR6Judg97n9T6UjYWXgZU7T7ONUbYudxmmuwaxHP7pgKpE2\ntkT5a36KLySBHzf0XYUoAkQh91WUF93HkuX900TX2PgbN+VNb6kxSQnq+7jY\n2fHmdAEBD5KU3sDzodvG1bagzu1bNdH6p+w/RdmM+U8yWELTNvbNf8EDp7IX\nQmIi1unT+x0a1KamV8GuADO5XvqjQYZ9KkhzS0MZyea6x0IIBcwMIGLFl6uw\n9u8NEzi5zQYxVLNM+oMhf/qDnk1nhk0qr6RRcLXiFlI9cfpvxp36grB/vyTL\nD+KXSm9SZ5qgVPhmLs06KxdtzxR8d4rK6mXURAVThWtgDDv7D18D/BfhUqyL\nxVjZOK5DwLszGyPaNavION5wx6rXMXCr38/LmqnF1riXBu0hjlW1KAGa7/n+\n1xS5\r\n=Ya9h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZ2YIbFfj//Ej3Q8BbQhIe3D3a3Wgtqm7LJXsKDyv55gIhAK9YWsBPgt0W6PcWxzbnAQJMXDICr0v2eMXgIPW9NRUR"}]},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger_1.6.0_1540331125946_0.6647143733921219"},"_hasShrinkwrap":false},"1.7.0-next.11b5e24":{"name":"js-logger","version":"1.7.0-next.11b5e24","license":"MIT","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"lint":"jshint --exclude=src/*.min.js src/*.js test-src/*.js","test":"npm run test:unit && npm run test:tsd","test:unit":"node-qunit-phantomjs ./test-src/index.html","test:tsd":"cd test-src/typescript-consumer && tsc --noEmit index","build":"npm run build:version && npm run build:minify","build:minify":"uglifyjs src/logger.js --mangle --compress -o src/logger.min.js","build:version":"cross-env replace -s 'VERSION = \"[^\"]+\"' \"VERSION = \\\"$npm_package_version\\\"\" src/logger.js"},"devDependencies":{"cross-env":"^5.2.0","jshint":"^2.9.6","node-qunit-phantomjs":"^2.0.0","replace":"^1.0.0","rimraf":"^2.6.2","typescript":"^3.1.3","uglify-js":"^3.4.9"},"gitHead":"11b5e24ad1b7daacc6ce8a8bd3194fa2a059b293","readme":"# js-Logger [![Build Status](https://travis-ci.org/jonnyreeves/js-logger.svg?branch=master)](https://travis-ci.org/jonnyreeves/js-logger) [![npm version](https://badge.fury.io/js/js-logger.svg)](http://badge.fury.io/js/js-logger) ![npm dependencies](https://david-dm.org/jonnyreeves/js-logger.png)\n\n> Lightweight, unobtrusive, configurable JavaScript logger.\n\n[logger.js](https://github.com/jonnyreeves/js-logger/blob/master/src/logger.js) will make you rich, famous and want for almost nothing - oh and it's a flexible abstraction over using `console.log` as well.\n\n## Installation\njs-Logger has zero dependencies and comes with AMD and CommonJS module boilerplate.  If the last sentence meant nothing to you then just lob the following into your page:\n\n```html\n<script src=\"https://unpkg.com/js-logger/src/logger.min.js\"></script>\n```\n\nHave a look at [babel-plugin-js-logger](https://github.com/core-process/babel-plugin-js-logger), in case your project utilizes [Babel](https://babeljs.io/), and you want to use js-Logger throughout your entire project efficiently.\n\n## Usage\nNothing beats the sheer ecstasy of logging!  js-Logger does its best to not be awkward and get in the way.  If you're the sort of person who just wants to get down and dirty then all you need is one line of code:\n\n```js\n// Log messages will be written to the window's console.\nLogger.useDefaults();\n```\n\nNow, when you want to emit a red-hot log message, just drop one of the following (the syntax is identical to the `console` object)\n\n```js\nLogger.debug(\"I'm a debug message!\");\nLogger.info(\"OMG! Check this window out!\", window);\nLogger.warn(\"Purple Alert! Purple Alert!\");\nLogger.error(\"HOLY SHI... no carrier.\");\nLogger.trace(\"Very verbose message that usually is not needed...\");\nLogger.trace(\"...containing stack trace (if console.trace() method supports it)\");\n```\n\nLog messages can get a bit annoying; you don't need to tell me, it's all cool.  If things are getting too noisy for your liking then it's time you read up on the `Logger.setLevel` method:\n\n```js\n// Only log WARN and ERROR messages.\nLogger.setLevel(Logger.WARN);\nLogger.debug(\"Donut machine is out of pink ones\");  // Not a peep.\nLogger.warn(\"Asteroid detected!\");  // Logs \"Asteroid detected!\", best do something about that!\n\n// Ah, you know what, I'm sick of all these messages.\n// But I want to see them again later\nvar oldLevel = Logger.getLevel();\nLogger.setLevel(Logger.OFF);\nLogger.error(\"Hull breach on decks 5 through to 41!\");  // ...\n\n// Actually, maybe those logs were quite useful...\nLogger.setLevel(oldLevel);\n\n```\n\n## Log Handler Functions\nAll log messages are routed through a handler function which redirects filtered messages somewhere.  You can configure the handler function via `Logger.setHandler` noting that the supplied function expects two arguments; the first being the log messages to output and the latter being a context object which can be inspected by the log handler.\n\n```js\nLogger.setHandler(function (messages, context) {\n\t// Send messages to a custom logging endpoint for analysis.\n\t// TODO: Add some security? (nah, you worry too much! :P)\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n});\n```\n\n### Default Log Handler Function\njs-Logger provides a default handler function which writes to your browser's `console` object using the appropriate logging functions based on the message's log level (ie: `Logger.info()` will result in a call to `console.info()`).  The default handler automatically shims for sub-optiomal environments right down to IE7's complete lack of `console` object (it only appears when you open the DevTools - seriously, this is one of the anti-user troll things I've seen!)\n\nUse `Logger.createDefaultHandler()` to return a new log handler function which can then be supplied to `Logger.setHandler()`.\n\nYou can customise the formatting of each log message by supplying a formatter function to `createDefaultHandler`:\n\n```js\nLogger.createDefaultHandler({\n\tformatter: function(messages, context) {\n\t\t// prefix each log message with a timestamp.\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n});\n```\n\nYou can use functional composition to extend the default handler with your own custom handler logic:\n\n```js\nvar consoleHandler = Logger.createDefaultHandler();\nvar myHandler = function (messages, context) {\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n};\n\nLogger.setHandler(function (messages, context) {\n\tconsoleHandler(messages, context);\n\tmyHandler(messages, context);\n});\n\n```\n\n### useDefaults\n`Logger.useDefaults()` is a convenience function which allows you to configure both the default logLevel and handler in one go:\n\n```js\nLogger.useDefaults({\n\tdefaultLevel: Logger.WARN,\n\tformatter: function (messages, context) {\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n})\n```\n\n## Named Loggers\nOkay, let's get serious, logging is not for kids, it's for adults with serious software to write and mission critical log messages to trawl through.  To help you in your goal, js-Logger provides 'named' loggers which can be configured individual with their own contexts.\n\n```js\n// Retrieve a named logger and store it for use.\nvar myLogger = Logger.get('ModuleA');\nmyLogger.info(\"FizzWozz starting up\");\n\n// This logger instance can be configured independent of all others (including the global one).\nmyLogger.setLevel(Logger.WARN);\n\n// As it's the same instance being returned each time, you don't have to store a reference:\nLogger.get('ModuleA').warn('FizzWozz combombulated!');\n```\n\nNote that `Logger.setLevel()` will also change the current log filter level for all named logger instances; so typically you would configure your logger levels like so:\n\n```js\n// Create several named loggers (typically in their own module)\nvar loggerA = Logger.get('LoggerA');\nvar loggerB = Logger.get('LoggerB');\nvar loggerC = Logger.get('LoggerC');\n\n// Configure log levels.\nLogger.setLevel(Logger.WARN);  // Global logging level.\nLogger.get('LoggerB').setLevel(Logger.DEBUG);  // Enable debug logging for LoggerB\nLogger.get('LoggerC').setLevel(Logger.TRACE);  // Enable trace logging for LoggerC\n```\n\n## Profiling\nSometimes its good to know what's taking so damn long; you can use `Logger.time()` and `Logger.timeEnd()` to keep tabs on things, the default log handler implementation delegates to the equivalent console methods if they exist, or write to `console.log` if they don't.\n\n```js\n// Start timing something\nLogger.time('self destruct sequence');\n\n// ... Some time passes ...\n\n// Stop timing something.\nLogger.timeEnd('self destruct sequence'); // logs: 'self destruct sequence: 1022ms'.\n```\n\nNote that `time` and `timeEnd` methods are also provided to named Logger instances.\n\n## Usage with TypeScript\nTypeScript is great, you should use it. See [the typescript consumer test](./test-src/typescript-consumer/index.ts) for example usage.\n","readmeFilename":"README.md","_id":"js-logger@1.7.0-next.11b5e24","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"integrity":"sha512-rI5f45xDsjkIahBDRnoQxzdj8jtZrHkZFmrDg13pQaHmys2w12NNpEiXFP5XHcZeCCu3w/EvjqZiW08Q3em1DQ==","shasum":"9ea3161cdaffb3bae1511517293de9589d9b065b","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.7.0-next.11b5e24.tgz","fileCount":8,"unpackedSize":26763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3zIGCRA9TVsSAnZWagAAg0sP/jiEPTVy95l+LqW7+w1Z\nwfDybIaay7WcdQU3+nhTW+CdRdpTsLMnSf+K4LSTEr0eb6b8/7xbHObke6PO\nEhGy6exDPLstn79BUBzzS1U0KR5AQfhwfaH6TqWiL+CvKWNvM0woGEEakayP\nJszutd/kS3TJTQHNmfh40b6LzT57rcU2oznXv9i1SClPNiIcVWsmxe1Cll+E\nLRa43WrGChTGe+MIP8kbMTVzWuWofwcw0uXqHH7nB0uS9PMgv9/vB/I8mGlN\neR5TUKWIOCaupOnhmCEvPcsbSwXx7wPoiSicgtVm6l7HgqvmuvA1KgTaunq6\nS/82CakZt9sb5gfA9/HCEU5FXJAzInMS1jfd60Gj9m3BeJKxY6y45rneLMwN\n5yWvp//JqwbTA9WPTNkXW8VaDDWaOEVKo/24aUCEH03DpwNvosTRjD552tAy\nG/o3/nYT9vrpJ0P8SN8aubghEEGr4ZcxOV9JTgThCoD2zcTIze51V50LbKEQ\n1YrFzswKShO8ZQjrWzLTuDm56bL+cM6U/7tZnkLKbohyQseLbMY+Kc+wm1R3\nIW1bdKpsqtQjQ8E0IP/7V8C60TSphw2v10vpFpdpnf1A0RFJD1SSHYVwAQMU\nGNwHLa+Q6YnwEWJSM2ZQ8TjkHEFjWeiNEiVJ3VN9NJbNfbPRAwvlJEMrn4fu\nNtHv\r\n=94sU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhsWZSyrLznxZHyVSMqSCwRpyZtc8yHycEeXCxCZFZhgIhAIL/yCin7ntqZP+elYLAZqZWO6gDqndbMpUfy0mvBwMG"}]},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger_1.7.0-next.11b5e24_1541353989624_0.940328697580471"},"_hasShrinkwrap":false},"1.7.0-next.e8a6f6c":{"name":"js-logger","version":"1.7.0-next.e8a6f6c","license":"MIT","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"lint":"jshint --exclude=src/*.min.js src/*.js test-src/*.js","test":"npm run test:unit && npm run test:tsd","test:unit":"node-qunit-phantomjs ./test-src/index.html","test:tsd":"ts-node -r tsconfig-paths/register test-src/typescript-consumer/index.ts","build":"npm run build:version && npm run build:minify","build:minify":"uglifyjs src/logger.js --mangle --compress -o src/logger.min.js","build:version":"cross-env replace -s 'VERSION = \"[^\"]+\"' \"VERSION = \\\"$npm_package_version\\\"\" src/logger.js"},"devDependencies":{"cross-env":"^5.2.0","jshint":"^2.9.6","node-qunit-phantomjs":"^2.0.0","replace":"^1.0.0","rimraf":"^2.6.2","ts-node":"^7.0.1","tsconfig-paths":"^3.7.0","typescript":"^3.1.3","uglify-js":"^3.4.9"},"gitHead":"e8a6f6cc86563f3ad1a0d317d8a45020fa0a73d3","readme":"# js-Logger [![Build Status](https://travis-ci.org/jonnyreeves/js-logger.svg?branch=master)](https://travis-ci.org/jonnyreeves/js-logger) [![npm version](https://badge.fury.io/js/js-logger.svg)](http://badge.fury.io/js/js-logger) ![npm dependencies](https://david-dm.org/jonnyreeves/js-logger.png)\n\n> Lightweight, unobtrusive, configurable JavaScript logger.\n\n[logger.js](https://github.com/jonnyreeves/js-logger/blob/master/src/logger.js) will make you rich, famous and want for almost nothing - oh and it's a flexible abstraction over using `console.log` as well.\n\n## Installation\njs-Logger has zero dependencies and comes with AMD and CommonJS module boilerplate.  If the last sentence meant nothing to you then just lob the following into your page:\n\n```html\n<script src=\"https://unpkg.com/js-logger/src/logger.min.js\"></script>\n```\n\nHave a look at [babel-plugin-js-logger](https://github.com/core-process/babel-plugin-js-logger), in case your project utilizes [Babel](https://babeljs.io/), and you want to use js-Logger throughout your entire project efficiently.\n\n## Usage\nNothing beats the sheer ecstasy of logging!  js-Logger does its best to not be awkward and get in the way.  If you're the sort of person who just wants to get down and dirty then all you need is one line of code:\n\n```js\n// Log messages will be written to the window's console.\nLogger.useDefaults();\n```\n\nNow, when you want to emit a red-hot log message, just drop one of the following (the syntax is identical to the `console` object)\n\n```js\nLogger.debug(\"I'm a debug message!\");\nLogger.info(\"OMG! Check this window out!\", window);\nLogger.warn(\"Purple Alert! Purple Alert!\");\nLogger.error(\"HOLY SHI... no carrier.\");\nLogger.trace(\"Very verbose message that usually is not needed...\");\nLogger.trace(\"...containing stack trace (if console.trace() method supports it)\");\n```\n\nLog messages can get a bit annoying; you don't need to tell me, it's all cool.  If things are getting too noisy for your liking then it's time you read up on the `Logger.setLevel` method:\n\n```js\n// Only log WARN and ERROR messages.\nLogger.setLevel(Logger.WARN);\nLogger.debug(\"Donut machine is out of pink ones\");  // Not a peep.\nLogger.warn(\"Asteroid detected!\");  // Logs \"Asteroid detected!\", best do something about that!\n\n// Ah, you know what, I'm sick of all these messages.\n// But I want to see them again later\nvar oldLevel = Logger.getLevel();\nLogger.setLevel(Logger.OFF);\nLogger.error(\"Hull breach on decks 5 through to 41!\");  // ...\n\n// Actually, maybe those logs were quite useful...\nLogger.setLevel(oldLevel);\n\n```\n\n## Log Handler Functions\nAll log messages are routed through a handler function which redirects filtered messages somewhere.  You can configure the handler function via `Logger.setHandler` noting that the supplied function expects two arguments; the first being the log messages to output and the latter being a context object which can be inspected by the log handler.\n\n```js\nLogger.setHandler(function (messages, context) {\n\t// Send messages to a custom logging endpoint for analysis.\n\t// TODO: Add some security? (nah, you worry too much! :P)\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n});\n```\n\n### Default Log Handler Function\njs-Logger provides a default handler function which writes to your browser's `console` object using the appropriate logging functions based on the message's log level (ie: `Logger.info()` will result in a call to `console.info()`).  The default handler automatically shims for sub-optiomal environments right down to IE7's complete lack of `console` object (it only appears when you open the DevTools - seriously, this is one of the anti-user troll things I've seen!)\n\nUse `Logger.createDefaultHandler()` to return a new log handler function which can then be supplied to `Logger.setHandler()`.\n\nYou can customise the formatting of each log message by supplying a formatter function to `createDefaultHandler`:\n\n```js\nLogger.createDefaultHandler({\n\tformatter: function(messages, context) {\n\t\t// prefix each log message with a timestamp.\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n});\n```\n\nYou can use functional composition to extend the default handler with your own custom handler logic:\n\n```js\nvar consoleHandler = Logger.createDefaultHandler();\nvar myHandler = function (messages, context) {\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n};\n\nLogger.setHandler(function (messages, context) {\n\tconsoleHandler(messages, context);\n\tmyHandler(messages, context);\n});\n\n```\n\n### useDefaults\n`Logger.useDefaults()` is a convenience function which allows you to configure both the default logLevel and handler in one go:\n\n```js\nLogger.useDefaults({\n\tdefaultLevel: Logger.WARN,\n\tformatter: function (messages, context) {\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n})\n```\n\n## Named Loggers\nOkay, let's get serious, logging is not for kids, it's for adults with serious software to write and mission critical log messages to trawl through.  To help you in your goal, js-Logger provides 'named' loggers which can be configured individual with their own contexts.\n\n```js\n// Retrieve a named logger and store it for use.\nvar myLogger = Logger.get('ModuleA');\nmyLogger.info(\"FizzWozz starting up\");\n\n// This logger instance can be configured independent of all others (including the global one).\nmyLogger.setLevel(Logger.WARN);\n\n// As it's the same instance being returned each time, you don't have to store a reference:\nLogger.get('ModuleA').warn('FizzWozz combombulated!');\n```\n\nNote that `Logger.setLevel()` will also change the current log filter level for all named logger instances; so typically you would configure your logger levels like so:\n\n```js\n// Create several named loggers (typically in their own module)\nvar loggerA = Logger.get('LoggerA');\nvar loggerB = Logger.get('LoggerB');\nvar loggerC = Logger.get('LoggerC');\n\n// Configure log levels.\nLogger.setLevel(Logger.WARN);  // Global logging level.\nLogger.get('LoggerB').setLevel(Logger.DEBUG);  // Enable debug logging for LoggerB\nLogger.get('LoggerC').setLevel(Logger.TRACE);  // Enable trace logging for LoggerC\n```\n\n## Profiling\nSometimes its good to know what's taking so damn long; you can use `Logger.time()` and `Logger.timeEnd()` to keep tabs on things, the default log handler implementation delegates to the equivalent console methods if they exist, or write to `console.log` if they don't.\n\n```js\n// Start timing something\nLogger.time('self destruct sequence');\n\n// ... Some time passes ...\n\n// Stop timing something.\nLogger.timeEnd('self destruct sequence'); // logs: 'self destruct sequence: 1022ms'.\n```\n\nNote that `time` and `timeEnd` methods are also provided to named Logger instances.\n\n## Usage with TypeScript\nTypeScript is great, you should use it. See [the typescript consumer test](./test-src/typescript-consumer/index.ts) for example usage.\n","readmeFilename":"README.md","_id":"js-logger@1.7.0-next.e8a6f6c","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"integrity":"sha512-e41BB3oRJ4IHcdu4oRA4Ehk+e44eZmNOtca1KsoQLjDTtbA0Bd9p09L5h11haJ3Rz9cU/iL0G8n72u6w3B/Q3A==","shasum":"70b8b916e0583b8f640efaf8797550aabb6cf3f3","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.7.0-next.e8a6f6c.tgz","fileCount":7,"unpackedSize":28331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+6YOCRA9TVsSAnZWagAAl08P/0/HXX4vXUZN7A+EhdPF\nYFbT8WmNJZ2+1IUtHjUnt7T/Fp8eTnW+k2RfSpM2MtnG11KNnMtAC/OnDUvf\nTCYKMGshu42n5VBEYRFSpPWmVmZfMeb+qLTKA7nJA5xMRpuO5SZ/Xxdz+y6U\nfx4u1wfY3fQBlyjzt6iRXFp46NOOE1eqbirc9jMqHsvd0tj68JewWbtZmMpV\na9pB31s+Usl/AEAlcAnNNqy3IFikUthBnY42rMs2AggqWXdKHdhISwtKuitt\n75hX0JnRlycv5wU1Ld07HIgcrEpwNt0vARPciaFQraDoyJJ77xRcyjQT0Pn8\nU479UjrN3De+ayrhhfye9xqcQLd3eDZN6UC/CxL00fiFh58XkHYAyvaqD/PJ\nNgvQbxE1mvi1UgU1NWgTzoCoZMW43feasG/OGMXBKWx8Ws/AUZG79TkJg//j\nkkPoF/CEzgXbp9FRH5sv7SH2rEJixLdixitncur1n0+7XcbOApxiqqHDtSg8\ndEH+NtGOr5e2Ajyva1RDHOuiqPnYvHkuvT/2BSZZrjK0AoEwa/Aq58/hml0f\nnb63k/uuahDzxhEcac4R6Bu/LzBM0iwkC7Ffio2eT/ciCJTD8JQEegUNatCN\nlHPoDhCvMUTDxobwAFwNfKToam6gD+ZbgWwKrpZjgPB2oU7+CUJG6VWsA14h\nFzQn\r\n=iXzn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO03PPp4yFCm03jUOyZn8WG3nPrKRunJ7EQdaiSOnoeQIgai/X8dc0YcC/+I2qFc2hpYeNjVw/yHQz5Nur2v/8jSk="}]},"maintainers":[{"name":"calaniz","email":"cesar@userfox.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger_1.7.0-next.e8a6f6c_1543218701656_0.6959402690077956"},"_hasShrinkwrap":false},"1.7.0-next.d6040b4":{"name":"js-logger","version":"1.7.0-next.d6040b4","license":"MIT","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"lint":"jshint --exclude=src/*.min.js src/*.js test-src/*.js","test":"npm run test:unit && npm run test:tsd","test:unit":"node-qunit-phantomjs ./test-src/index.html","test:tsd":"ts-node -r tsconfig-paths/register test-src/typescript-consumer/index.ts","build":"npm run build:version && npm run build:minify","build:minify":"uglifyjs src/logger.js --mangle --compress -o src/logger.min.js","build:version":"cross-env replace -s 'VERSION = \"[^\"]+\"' \"VERSION = \\\"$npm_package_version\\\"\" src/logger.js"},"devDependencies":{"cross-env":"^5.2.0","jshint":"^2.9.6","node-qunit-phantomjs":"^2.0.0","replace":"^1.0.0","rimraf":"^2.6.2","ts-node":"^7.0.1","tsconfig-paths":"^3.7.0","typescript":"^3.1.3","uglify-js":"^3.4.9"},"gitHead":"d6040b45c3dc5ad143937501afb2bd836bd3f015","readme":"# js-Logger [![Build Status](https://travis-ci.org/jonnyreeves/js-logger.svg?branch=master)](https://travis-ci.org/jonnyreeves/js-logger) [![npm version](https://badge.fury.io/js/js-logger.svg)](http://badge.fury.io/js/js-logger) ![npm dependencies](https://david-dm.org/jonnyreeves/js-logger.png)\n\n> Lightweight, unobtrusive, configurable JavaScript logger.\n\n[logger.js](https://github.com/jonnyreeves/js-logger/blob/master/src/logger.js) will make you rich, famous and want for almost nothing - oh and it's a flexible abstraction over using `console.log` as well.\n\n## Installation\njs-Logger has zero dependencies and comes with AMD and CommonJS module boilerplate.  If the last sentence meant nothing to you then just lob the following into your page:\n\n```html\n<script src=\"https://unpkg.com/js-logger/src/logger.min.js\"></script>\n```\n\nHave a look at [babel-plugin-js-logger](https://github.com/core-process/babel-plugin-js-logger), in case your project utilizes [Babel](https://babeljs.io/), and you want to use js-Logger throughout your entire project efficiently.\n\n## Usage\nNothing beats the sheer ecstasy of logging!  js-Logger does its best to not be awkward and get in the way.  If you're the sort of person who just wants to get down and dirty then all you need is one line of code:\n\n```js\n// Log messages will be written to the window's console.\nLogger.useDefaults();\n```\n\nNow, when you want to emit a red-hot log message, just drop one of the following (the syntax is identical to the `console` object)\n\n```js\nLogger.debug(\"I'm a debug message!\");\nLogger.info(\"OMG! Check this window out!\", window);\nLogger.warn(\"Purple Alert! Purple Alert!\");\nLogger.error(\"HOLY SHI... no carrier.\");\nLogger.trace(\"Very verbose message that usually is not needed...\");\nLogger.trace(\"...containing stack trace (if console.trace() method supports it)\");\n```\n\nLog messages can get a bit annoying; you don't need to tell me, it's all cool.  If things are getting too noisy for your liking then it's time you read up on the `Logger.setLevel` method:\n\n```js\n// Only log WARN and ERROR messages.\nLogger.setLevel(Logger.WARN);\nLogger.debug(\"Donut machine is out of pink ones\");  // Not a peep.\nLogger.warn(\"Asteroid detected!\");  // Logs \"Asteroid detected!\", best do something about that!\n\n// Ah, you know what, I'm sick of all these messages.\n// But I want to see them again later\nvar oldLevel = Logger.getLevel();\nLogger.setLevel(Logger.OFF);\nLogger.error(\"Hull breach on decks 5 through to 41!\");  // ...\n\n// Actually, maybe those logs were quite useful...\nLogger.setLevel(oldLevel);\n\n```\n\n## Log Handler Functions\nAll log messages are routed through a handler function which redirects filtered messages somewhere.  You can configure the handler function via `Logger.setHandler` noting that the supplied function expects two arguments; the first being the log messages to output and the latter being a context object which can be inspected by the log handler.\n\n```js\nLogger.setHandler(function (messages, context) {\n\t// Send messages to a custom logging endpoint for analysis.\n\t// TODO: Add some security? (nah, you worry too much! :P)\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n});\n```\n\n### Default Log Handler Function\njs-Logger provides a default handler function which writes to your browser's `console` object using the appropriate logging functions based on the message's log level (ie: `Logger.info()` will result in a call to `console.info()`).  The default handler automatically shims for sub-optiomal environments right down to IE7's complete lack of `console` object (it only appears when you open the DevTools - seriously, this is one of the anti-user troll things I've seen!)\n\nUse `Logger.createDefaultHandler()` to return a new log handler function which can then be supplied to `Logger.setHandler()`.\n\nYou can customise the formatting of each log message by supplying a formatter function to `createDefaultHandler`:\n\n```js\nLogger.createDefaultHandler({\n\tformatter: function(messages, context) {\n\t\t// prefix each log message with a timestamp.\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n});\n```\n\nYou can use functional composition to extend the default handler with your own custom handler logic:\n\n```js\nvar consoleHandler = Logger.createDefaultHandler();\nvar myHandler = function (messages, context) {\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n};\n\nLogger.setHandler(function (messages, context) {\n\tconsoleHandler(messages, context);\n\tmyHandler(messages, context);\n});\n\n```\n\n### useDefaults\n`Logger.useDefaults()` is a convenience function which allows you to configure both the default logLevel and handler in one go:\n\n```js\nLogger.useDefaults({\n\tdefaultLevel: Logger.WARN,\n\tformatter: function (messages, context) {\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n})\n```\n\n## Named Loggers\nOkay, let's get serious, logging is not for kids, it's for adults with serious software to write and mission critical log messages to trawl through.  To help you in your goal, js-Logger provides 'named' loggers which can be configured individual with their own contexts.\n\n```js\n// Retrieve a named logger and store it for use.\nvar myLogger = Logger.get('ModuleA');\nmyLogger.info(\"FizzWozz starting up\");\n\n// This logger instance can be configured independent of all others (including the global one).\nmyLogger.setLevel(Logger.WARN);\n\n// As it's the same instance being returned each time, you don't have to store a reference:\nLogger.get('ModuleA').warn('FizzWozz combombulated!');\n```\n\nNote that `Logger.setLevel()` will also change the current log filter level for all named logger instances; so typically you would configure your logger levels like so:\n\n```js\n// Create several named loggers (typically in their own module)\nvar loggerA = Logger.get('LoggerA');\nvar loggerB = Logger.get('LoggerB');\nvar loggerC = Logger.get('LoggerC');\n\n// Configure log levels.\nLogger.setLevel(Logger.WARN);  // Global logging level.\nLogger.get('LoggerB').setLevel(Logger.DEBUG);  // Enable debug logging for LoggerB\nLogger.get('LoggerC').setLevel(Logger.TRACE);  // Enable trace logging for LoggerC\n```\n\n## Profiling\nSometimes its good to know what's taking so damn long; you can use `Logger.time()` and `Logger.timeEnd()` to keep tabs on things, the default log handler implementation delegates to the equivalent console methods if they exist, or write to `console.log` if they don't.\n\n```js\n// Start timing something\nLogger.time('self destruct sequence');\n\n// ... Some time passes ...\n\n// Stop timing something.\nLogger.timeEnd('self destruct sequence'); // logs: 'self destruct sequence: 1022ms'.\n```\n\nNote that `time` and `timeEnd` methods are also provided to named Logger instances.\n\n## Usage with TypeScript\nTypeScript is great, you should use it. See [the typescript consumer test](./test-src/typescript-consumer/index.ts) for example usage.\n","readmeFilename":"README.md","_id":"js-logger@1.7.0-next.d6040b4","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"integrity":"sha512-pLnZD7e6mg90FrfeWkUlWsaUexBAqmoo2MB9nfLo7DPG4R5v+oxgv6BNdIdpwBQmzlv4uAMjsAOEEGvG1oHxfw==","shasum":"476c94898549107ec998e379aca9c3132c707df7","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.7.0-next.d6040b4.tgz","fileCount":7,"unpackedSize":28331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrD+KCRA9TVsSAnZWagAAg+wP/j0brkqLtM5j7Nb6XZVE\njXgUGBjqJJ1ov2c3x594U3kePWsvpNCakECI/wOzpokddvqLr/5CEXW0Of/O\n0MGh6UKSbXAOeZyy/Nrkk4x/hnrMO/6DT9vvdz8pW5rRHPdWvMswHyay8ZH8\nuyoOEA/AaVbc7qT4Y9hPY8d7hnjybULe81saR2vImGrZUlIn2oWrfxVeRwaK\nKZQ+rDRlSOTdHG3Bhtk7y1pQOwvCa8IFZww6w7vvOknjQUECzWS633a12qQB\n/NXMlxdb1W/YdzhusaUM8kXrkmZ53wM2mo5fXepNdZE3tLg/i1/ir836m8cK\nG5FCA2RA5K71BhkrgtOGKfIjbn1ZaNrRHhv1LokHpZcSpXtEHXZfgZ7gn+PV\nAQbgiBixD0u1+S5ylRpK1SBPFaoVYgxDxmaaNMhlHHX9oruZtln4XZvKSGO+\nkV+epRaocnhTxGR5zKZRB8B/aTYGH8O6vPvlp2aEmlm3cdZ8bP8xnUHJr5zK\nuNdGwt5QdnuJsLnPiE5g/jMEHXhqUaV1GZHd+SoyBtWqQpjnrZn85GST93UF\nyo27Me+M2LGrurZDNSKf1D64mn1D8Jsowsfb4Jw8UwwSdPyOwMC55aKQNWEk\nP04iCm4Oh5B5YmDchnC6afyt4UUeXmZ7Y3dgd88u9BKK0TkAhaAnHIm8Onig\n4dAm\r\n=L/nh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAo2wW5OqmfPVzysefIJVgAltFtpgo1eVeyf09EYgwqtAiB5FAGYh7O5HsrvBwdsR87XgQCG8XuRVLxDiCCWexF3UQ=="}]},"directories":{},"maintainers":[{"name":"calaniz","email":"cesar@alanisoft.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger_1.7.0-next.d6040b4_1605123978147_0.22093646344780637"},"_hasShrinkwrap":false},"1.6.1":{"name":"js-logger","version":"1.6.1","license":"MIT","description":"Lightweight, unobtrusive, configurable JavaScript logger","author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"homepage":"http://github.com/jonnyreeves/js-logger","typings":"./src/logger.d.ts","repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"licenses":[{"type":"MIT","url":"http://github.com/jonnyreeves/js-logger/blob/master/MIT-LICENSE.txt"}],"main":"src/logger.js","scripts":{"lint":"jshint --exclude=src/*.min.js src/*.js test-src/*.js","test":"npm run test:unit && npm run test:tsd","test:unit":"node-qunit-phantomjs ./test-src/index.html","test:tsd":"ts-node -r tsconfig-paths/register test-src/typescript-consumer/index.ts","build":"npm run build:version && npm run build:minify","build:minify":"uglifyjs src/logger.js --mangle --compress -o src/logger.min.js","build:version":"cross-env replace -s 'VERSION = \"[^\"]+\"' \"VERSION = \\\"$npm_package_version\\\"\" src/logger.js"},"devDependencies":{"cross-env":"^5.2.0","jshint":"^2.9.6","node-qunit-phantomjs":"^2.0.0","replace":"^1.0.0","rimraf":"^2.6.2","ts-node":"^7.0.1","tsconfig-paths":"^3.7.0","typescript":"^3.1.3","uglify-js":"^3.4.9"},"gitHead":"c63da2528ff2b6800a6b03692e333922c532b147","_id":"js-logger@1.6.1","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"},"dist":{"integrity":"sha512-yTgMCPXVjhmg28CuUH8CKjU+cIKL/G+zTu4Fn4lQxs8mRFH/03QTNvEFngcxfg/gRDiQAOoyCKmMTOm9ayOzXA==","shasum":"8f09671b515e4a6f31dced8fdb8923432e2c60af","tarball":"https://registry.npmjs.org/js-logger/-/js-logger-1.6.1.tgz","fileCount":7,"unpackedSize":28676,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrjW0CRA9TVsSAnZWagAAOdUP/1nUuLxfEwcq8Qx8Avbh\nVLNKXhulN5df1Td8J3gD5vYTebG6GmSB9Fb7FcEO9HLXIY30k3/X13BFPQqO\niJ0dUZ2Af914XH8mUod8+5Hc89gFEYEgmhSiFe8cYYxGAqVehkpMFNX8A4t7\nEBrxmOrL7S6HwnkGZ9UuCVb/DPok+CKLApcWnxlH2qxZIUz0g6266IUg0Dc4\nKMn6q/zv+Q+ah9thaxf2UTj0+0tncRvtR5LqmAtF6KnK7V5jZKplS1fWo40i\nFZNc00WmYAuk7jaqWb4y8sdpHfQNpYgR5uS4ArP+QKDjfuphwEVFb7uPrTpd\nL3UHzfOeuBmuz9b6hqQnwlXUKLBibaIp/YSc1ViRzloQjAD+HBEX4aOqxqMM\npVrDVhdOHHI6dhPzcMJhowCY15Jl92BB9e1l2eIaQu79GxDvkZdev/oWqpGe\n69stkQzNwY1Ke77L9pUHO6JldkHiTp6vlSCNbF4Kn8A/L2r7RyKJIQI/JcTw\nV8tq3hbk5jAaakE8wB7rrq3ocncMgWGhHDZHW3wfkjdh3tLwIsh/u6vcMCw5\nhTYF/fcIX4+xYsyN4GA8YwNYePXj3qt4Cf6a+V1WbEGj8OnWfqGiSOuhSVtx\n/L0eY6xrQh/W36zKl0JEpNG2kh4rApvMWy0TpGTvVDH0V6X+T1yliFgg22mV\nE2TD\r\n=7VfB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3J40XG/j6KX5Qxe0vk0PVmEosNsV4SRwD6/mr+fPYlAIgZSRlls2UbAQqr1Kbyb89TYtkD1a4FyDjNet8FVHMZ6w="}]},"directories":{},"maintainers":[{"name":"calaniz","email":"cesar@alanisoft.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-logger_1.6.1_1605252532023_0.7128751957212189"},"_hasShrinkwrap":false}},"readme":"# js-Logger [![Build Status](https://travis-ci.org/jonnyreeves/js-logger.svg?branch=master)](https://travis-ci.org/jonnyreeves/js-logger) [![npm version](https://badge.fury.io/js/js-logger.svg)](http://badge.fury.io/js/js-logger) ![npm dependencies](https://david-dm.org/jonnyreeves/js-logger.png)\n\n> Lightweight, unobtrusive, configurable JavaScript logger.\n\n[logger.js](https://github.com/jonnyreeves/js-logger/blob/master/src/logger.js) will make you rich, famous and want for almost nothing - oh and it's a flexible abstraction over using `console.log` as well.\n\n## Installation\njs-Logger has zero dependencies and comes with AMD and CommonJS module boilerplate.  If the last sentence meant nothing to you then just lob the following into your page:\n\n```html\n<script src=\"https://unpkg.com/js-logger/src/logger.min.js\"></script>\n```\n\nHave a look at [babel-plugin-js-logger](https://github.com/core-process/babel-plugin-js-logger), in case your project utilizes [Babel](https://babeljs.io/), and you want to use js-Logger throughout your entire project efficiently.\n\n## Usage\nNothing beats the sheer ecstasy of logging!  js-Logger does its best to not be awkward and get in the way.  If you're the sort of person who just wants to get down and dirty then all you need is one line of code:\n\n```js\n// Log messages will be written to the window's console.\nLogger.useDefaults();\n```\n\nNow, when you want to emit a red-hot log message, just drop one of the following (the syntax is identical to the `console` object)\n\n```js\nLogger.debug(\"I'm a debug message!\");\nLogger.info(\"OMG! Check this window out!\", window);\nLogger.warn(\"Purple Alert! Purple Alert!\");\nLogger.error(\"HOLY SHI... no carrier.\");\nLogger.trace(\"Very verbose message that usually is not needed...\");\nLogger.trace(\"...containing stack trace (if console.trace() method supports it)\");\n```\n\nLog messages can get a bit annoying; you don't need to tell me, it's all cool.  If things are getting too noisy for your liking then it's time you read up on the `Logger.setLevel` method:\n\n```js\n// Only log WARN and ERROR messages.\nLogger.setLevel(Logger.WARN);\nLogger.debug(\"Donut machine is out of pink ones\");  // Not a peep.\nLogger.warn(\"Asteroid detected!\");  // Logs \"Asteroid detected!\", best do something about that!\n\n// Ah, you know what, I'm sick of all these messages.\n// But I want to see them again later\nvar oldLevel = Logger.getLevel();\nLogger.setLevel(Logger.OFF);\nLogger.error(\"Hull breach on decks 5 through to 41!\");  // ...\n\n// Actually, maybe those logs were quite useful...\nLogger.setLevel(oldLevel);\n\n```\n\n## Log Handler Functions\nAll log messages are routed through a handler function which redirects filtered messages somewhere.  You can configure the handler function via `Logger.setHandler` noting that the supplied function expects two arguments; the first being the log messages to output and the latter being a context object which can be inspected by the log handler.\n\n```js\nLogger.setHandler(function (messages, context) {\n\t// Send messages to a custom logging endpoint for analysis.\n\t// TODO: Add some security? (nah, you worry too much! :P)\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n});\n```\n\n### Default Log Handler Function\njs-Logger provides a default handler function which writes to your browser's `console` object using the appropriate logging functions based on the message's log level (ie: `Logger.info()` will result in a call to `console.info()`).  The default handler automatically shims for sub-optiomal environments right down to IE7's complete lack of `console` object (it only appears when you open the DevTools - seriously, this is one of the anti-user troll things I've seen!)\n\nUse `Logger.createDefaultHandler()` to return a new log handler function which can then be supplied to `Logger.setHandler()`.\n\nYou can customise the formatting of each log message by supplying a formatter function to `createDefaultHandler`:\n\n```js\nLogger.createDefaultHandler({\n\tformatter: function(messages, context) {\n\t\t// prefix each log message with a timestamp.\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n});\n```\n\nYou can use functional composition to extend the default handler with your own custom handler logic:\n\n```js\nvar consoleHandler = Logger.createDefaultHandler();\nvar myHandler = function (messages, context) {\n\tjQuery.post('/logs', { message: messages[0], level: context.level });\n};\n\nLogger.setHandler(function (messages, context) {\n\tconsoleHandler(messages, context);\n\tmyHandler(messages, context);\n});\n\n```\n\n### useDefaults\n`Logger.useDefaults()` is a convenience function which allows you to configure both the default logLevel and handler in one go:\n\n```js\nLogger.useDefaults({\n\tdefaultLevel: Logger.WARN,\n\tformatter: function (messages, context) {\n\t\tmessages.unshift(new Date().toUTCString())\n\t}\n})\n```\n\nYou can also use the alias `Logger.setDefaults()`.\n\n## Named Loggers\nOkay, let's get serious, logging is not for kids, it's for adults with serious software to write and mission critical log messages to trawl through.  To help you in your goal, js-Logger provides 'named' loggers which can be configured individual with their own contexts.\n\n```js\n// Retrieve a named logger and store it for use.\nvar myLogger = Logger.get('ModuleA');\nmyLogger.info(\"FizzWozz starting up\");\n\n// This logger instance can be configured independent of all others (including the global one).\nmyLogger.setLevel(Logger.WARN);\n\n// As it's the same instance being returned each time, you don't have to store a reference:\nLogger.get('ModuleA').warn('FizzWozz combombulated!');\n```\n\nNote that `Logger.setLevel()` will also change the current log filter level for all named logger instances; so typically you would configure your logger levels like so:\n\n```js\n// Create several named loggers (typically in their own module)\nvar loggerA = Logger.get('LoggerA');\nvar loggerB = Logger.get('LoggerB');\nvar loggerC = Logger.get('LoggerC');\n\n// Configure log levels.\nLogger.setLevel(Logger.WARN);  // Global logging level.\nLogger.get('LoggerB').setLevel(Logger.DEBUG);  // Enable debug logging for LoggerB\nLogger.get('LoggerC').setLevel(Logger.TRACE);  // Enable trace logging for LoggerC\n```\n\n## Profiling\nSometimes its good to know what's taking so damn long; you can use `Logger.time()` and `Logger.timeEnd()` to keep tabs on things, the default log handler implementation delegates to the equivalent console methods if they exist, or write to `console.log` if they don't.\n\n```js\n// Start timing something\nLogger.time('self destruct sequence');\n\n// ... Some time passes ...\n\n// Stop timing something.\nLogger.timeEnd('self destruct sequence'); // logs: 'self destruct sequence: 1022ms'.\n```\n\nNote that `time` and `timeEnd` methods are also provided to named Logger instances.\n\n## Usage with TypeScript\nTypeScript is great, you should use it. See [the typescript consumer test](./test-src/typescript-consumer/index.ts) for example usage.\n","maintainers":[{"name":"calaniz","email":"cesar@alanisoft.com"},{"name":"jonnyreeves","email":"npm@jonnyreeves.co.uk"}],"time":{"modified":"2022-06-19T05:37:53.131Z","created":"2013-09-17T18:45:16.779Z","0.1.0":"2013-09-17T18:45:18.193Z","0.9.5":"2014-05-19T22:21:51.931Z","0.9.6":"2014-05-20T20:25:46.991Z","0.9.9":"2014-07-12T08:06:44.421Z","0.9.10":"2014-07-12T08:33:24.889Z","0.9.12":"2014-07-13T08:13:22.830Z","0.9.13":"2014-07-13T08:16:20.078Z","0.9.14":"2014-09-04T20:18:04.616Z","1.0.0":"2015-05-07T06:40:48.386Z","1.1.0":"2015-07-14T20:43:01.805Z","1.1.1":"2015-07-14T20:47:08.471Z","1.2.0":"2015-09-10T20:27:28.173Z","1.3.0":"2016-07-05T20:40:22.238Z","1.4.0":"2017-08-18T15:36:47.318Z","1.4.1":"2017-08-19T08:12:42.053Z","1.5.0":"2018-10-13T08:16:11.695Z","1.6.0":"2018-10-23T21:45:26.090Z","1.7.0-next.11b5e24":"2018-11-04T17:53:10.034Z","1.7.0-next.e8a6f6c":"2018-11-26T07:51:41.780Z","1.7.0-next.d6040b4":"2020-11-11T19:46:18.249Z","1.6.1":"2020-11-13T07:28:52.186Z"},"author":{"name":"Jonny Reeves","url":"http://jonnyreeves.co.uk"},"repository":{"type":"git","url":"git://github.com/jonnyreeves/js-logger.git"},"bugs":{"url":"http://github.com/jonnyreeves/js-logger/issues"},"readmeFilename":"README.md","homepage":"http://github.com/jonnyreeves/js-logger","users":{"jacquesw":true,"omgben":true,"yupmin":true,"carlosvillademor":true,"alimaster":true},"license":"MIT"}