{"name":"console-log-level","version":"1.4.1","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":"^12.0.1","tape":"^4.10.1"},"coordinates":[55.778253,12.593208],"gitHead":"afb5409f1ad19e594f9ad2b7849619168cd184a5","_id":"console-log-level@1.4.1","_nodeVersion":"11.10.1","_npmVersion":"6.7.0","_npmUser":{"name":"watson","email":"w@tson.dk"},"dist":{"integrity":"sha512-VZzbIORbP+PPcN/gg3DXClTLPLg5Slwd5fL2MIc+o1qZ4BXBvWyc6QxPk6T/Mkr6IVjRpoAGf32XxP3ZWMVRcQ==","shasum":"9c5a6bb9ef1ef65b05aba83028b0ff894cdf630a","tarball":"http://registry-npm.ywwl.com/console-log-level/download/console-log-level-1.4.1.tgz","fileCount":4,"unpackedSize":4613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjLDkCRA9TVsSAnZWagAAcgQQAJVOUf4il63xF3qj9iC5\nyy7/FcPdgqOkEclpIrxy8YTS7o2qvL1pMGa01+TmgqiUgJ5vWpIf9kvrWXOR\nsitZ3gdRwZY8oU1a+bVZpKkxdlusmzOfZ3Jj5Qq6bbafQRd98FE0RyUTvoZ0\nsXlzMqJqVlal86bYmMJmCsa/UsfOergibqCC/JWWZMT4JrMaGn5bMnwGFGQx\na4x0ovKRNJWzO8qeWqmrxRdbT85b9YPXsuIEE1repqOlPcpUFgIhxPw+pSyn\nmyugw8qOSYP/ubo/vqVryxXZ/9mnxw5fUcZ/8h/QzD1VQQlqtCdMKnkkYDU8\nI23Qkfb0Nshc0W+nOHOA9EGLP0b8FP0z0usug92ePWj07uX/ycAjkZCXp/BU\nHvaLm9Nad+2dahoWvrQBKAXDw4xKbp0P09g/jq2/In6fBPfXIvvE5f+zM2up\naRtJKvYrzj29CdmKL00FvNav1PGnHx0GTPUeGeodHQ0UU5ssHfmrd9wiWkWP\nGmgB2Stv3WJryPrzzbh6yvbMYVyx6SHaFMcfxzinMbi9NxCxFmPEwBNGVWbT\nC3bAQA6B2XRABxk45aApTbbVwU5vuLD7r8x9Mju3xRxbMSC3D8HW2Oc3woO+\nwq/HRyCebovx6WN/SEvuiSfonUAUB4SohHezc5izNyhdks4K9LvG3MpLAJ43\n3RN0\r\n=Zwnw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjyP2du1Dkdh9+LC+Kp8mqMAqEnQ3XJinbzI3RVpRKFAiBDyLV9yI24+LTkQMhuCtdbD6p2pZevnqVUrg6Q/1p3Cw=="}],"size":2283,"noattachment":false,"key":"/console-log-level/-/console-log-level-1.4.1.tgz"},"maintainers":[{"name":"watson","email":"w@tson.dk"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/console-log-level_1.4.1_1552724196055_0.4555939894251342"},"_hasShrinkwrap":false,"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":1552724196175,"_cnpm_publish_time":1552724196175,"dist-tags":{"latest":"1.4.1"}}