{"name":"console-log-level","version":"1.1.0","description":"The most simple logger imaginable","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/watson/console-log-level.git"},"keywords":["log","logging","logger","console","console.log","stdout","stderr"],"author":{"name":"Thomas Watson Steen","email":"w@tson.dk"},"license":"MIT","bugs":{"url":"https://github.com/watson/console-log-level/issues"},"homepage":"https://github.com/watson/console-log-level","dependencies":{},"devDependencies":{"tape":"^3.0.3"},"coordinates":[55.687684,12.5955911],"gitHead":"b4b489ddced051f7078d9547316646b915f38916","_id":"console-log-level@1.1.0","_shasum":"591d1affa10246d3c8a1450211d67a265446bcc9","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.10.38","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"591d1affa10246d3c8a1450211d67a265446bcc9","tarball":"http://registry-npm.ywwl.com/console-log-level/download/console-log-level-1.1.0.tgz","integrity":"sha512-GX+Rig5AFcUr7Cpka1kiJroEM++l3ZJ7V9Gc1jQQmhj4sqrIkzQ34aIq3ns+Joit+w2an3AaEZGJVG59QesKcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEbV+OfRghcdNGkE1SOEFP05K1dN58Xv9+AHa4E99CB8AiEA8q/VH6LVsToUE1ZT0EZhC5Gmrp7D4mlZ4mbgvdCgwAo="}],"size":3109,"noattachment":false,"key":"/console-log-level/-/console-log-level-1.1.0.tgz"},"directories":{},"readme":"# console-log-level\n\nA dead simple logger. Will log to STDOUT or STDERR depending on the\nchosen log level. It uses `console.info`, `console.warn` and\n`console.error` and hence supports the same API.\n\nLog levels supported: trace, debug, info, warn, error and fatal.\n\n[![npm](https://img.shields.io/npm/v/console-log-level.svg)](https://www.npmjs.com/package/console-log-level)\n[![Build status](https://travis-ci.org/watson/console-log-level.svg?branch=master)](https://travis-ci.org/watson/console-log-level)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\n\n## Installation\n\n```\nnpm install console-log-level\n```\n\n## Example usage\n\n```js\nvar log = require('console-log-level')({ level: 'info' })\n\nlog.trace('a') // will not do anything\nlog.debug('b') // will not do anything\nlog.info('c')  // will output 'c\\n' on STDOUT\nlog.warn('d')  // will output 'd\\n' on STDERR\nlog.error('e') // will output 'e\\n' on STDERR\nlog.fatal('f') // will output 'f\\n' on STDERR\n```\n\n## Options\n\nConfigure the logger by passing an options object:\n\n```js\nvar log = require('console-log-level')({\n  prefix: function (level) {\n    return new Date().toISOString()\n  },\n  level: 'info'\n})\n```\n\n### level\n\nA `string` to specify the log level. Defaults to `info`.\n\n### prefix\n\nSpecify this option if you want to set a prefix for all log messages.\nThis must be a `string` or a `function` that returns a string.\n\nWill get the level of the currently logged message as the first\nargument.\n\n### stderr\n\nA `boolean` to log everything to stderr. Defauls to `false`.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1436303678311,"_cnpm_publish_time":1436303678311,"dist-tags":{"latest":"1.4.1"}}