{"name":"console-log-level","version":"1.4.0","description":"The most simple logger imaginable","main":"index.js","scripts":{"test":"standard && tape 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":{"standard":"^7.1.2","tape":"^4.5.1"},"coordinates":[55.6810439,12.5643924],"gitHead":"5a0ad468becf29779771de738362f261b1a88295","_id":"console-log-level@1.4.0","_shasum":"4035818beea37e5850a0c03c8d450ca5f2cd1217","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"4035818beea37e5850a0c03c8d450ca5f2cd1217","tarball":"http://registry-npm.ywwl.com/console-log-level/download/console-log-level-1.4.0.tgz","integrity":"sha512-7o6ZNgLEKuxianFaZAJiN3XIx1grjWCldhmpOIwkGsvzjI+/DKjFoYEzlis5aNG01B+dLSqZbYpZSfry9cqvGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE8t/KFA30QFZqVSNLmnmCz1gByYItoEWr+vo0ok19IQIhALy+V1aZQIdbkwPaqJA+l6O07ezBP/hyAt/uFheuImqY"}],"size":3381,"noattachment":false,"key":"/console-log-level/-/console-log-level-1.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/console-log-level-1.4.0.tgz_1479979948326_0.9216490669641644"},"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":1479979950284,"_cnpm_publish_time":1479979950284,"dist-tags":{"latest":"1.4.1"}}