{"name":"console-log-level","version":"1.0.0","description":"The most simple logger imaginable","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"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"},"gitHead":"a5e2d1f1edd25a3c8b94ac96b610e617239779c9","_id":"console-log-level@1.0.0","_shasum":"0a0d2d88d6745479d5ecfa4809791e6abc1553bb","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"watson","email":"w@tson.dk"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"dist":{"shasum":"0a0d2d88d6745479d5ecfa4809791e6abc1553bb","tarball":"http://registry-npm.ywwl.com/console-log-level/download/console-log-level-1.0.0.tgz","integrity":"sha512-bC3q/lPrAiqngdA/7oIC0H+A3Cx0CKHFMSpYvaG1NjyES7L+3Ci819GVcBwty1GrCSnGKCXzan6ixyy77Tg90A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDymqb/T+RVZSZN67+3lcMvkvOXVeS4NrPrRY3sTPeaTgIhAPb7bo3WkNKPo2mpRz2jd8eloy/qfgZWlNRtjZ4hRwvN"}],"size":2560,"noattachment":false,"key":"/console-log-level/-/console-log-level-1.0.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":1420476816105,"_cnpm_publish_time":1420476816105,"dist-tags":{"latest":"1.4.1"}}