{"name":"console-log-level","version":"1.3.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.68769709999999,12.5956283],"gitHead":"1e39602849cb61f45daeed1150b1bb0d4c5b410c","_id":"console-log-level@1.3.0","_shasum":"9d249f6eaa3aaf33f27fc0bf293259bc5340c1b3","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"9d249f6eaa3aaf33f27fc0bf293259bc5340c1b3","tarball":"http://registry-npm.ywwl.com/console-log-level/download/console-log-level-1.3.0.tgz","integrity":"sha512-ByQxpQwp+yWy0hBG//9oXQsJfOcHBou6ZJYKQoRuYYBvXn0Yv5jewMyhPsakVhSCvPDoSHxzp1Ya0gnZE3icog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEiPj3ybCo5aRWnyzAxYHah3byfeE9tqzRLFVULLGMjQIgVzS2Hh3G7mSFQpPH/KvFJO0LjmbI7oKWofth/G0UFl0="}],"size":3259,"noattachment":false,"key":"/console-log-level/-/console-log-level-1.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/console-log-level-1.3.0.tgz_1467924519040_0.28011865727603436"},"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":1467924520170,"_cnpm_publish_time":1467924520170,"dist-tags":{"latest":"1.4.1"}}