{"name":"webpack-log","version":"1.1.1","description":"A common logging module for the Webpack ecosystem","license":"MIT","repository":{"type":"git","url":"git+https://github.com/webpack-contrib/webpack-log.git"},"author":{"name":"Andrew Powell","email":"andrew@shellscape.org"},"homepage":"http://github.com/webpack-contrib/webpack-log","maintainers":[{"name":"bebraw","email":"bebraw@gmail.com"},{"name":"d3viant0ne","email":"wiens.joshua@gmail.com"},{"name":"shellscape","email":"andrew@shellscape.org"}],"main":"index.js","engines":{"node":">=6"},"scripts":{"beautify":"npm run lint -- --fix","ci":"npm run cover -- --report lcovonly && npm run test","cover":"istanbul cover node_modules/mocha/bin/_mocha","lint":"eslint index.js test","mocha":"mocha --full-trace --check-leaks","test":"npm run lint && npm run mocha"},"files":["index.js"],"dependencies":{"chalk":"^2.1.0","log-symbols":"^2.1.0","loglevelnext":"^1.0.1","uuid":"^3.1.0"},"devDependencies":{"assert":"^1.4.1","codecov.io":"^0.1.6","eslint":"^4.5.0","eslint-config-webpack":"^1.2.5","eslint-plugin-import":"^2.7.0","istanbul":"^0.4.5","mocha":"^4.0.0","sinon":"^4.0.1","strip-ansi":"^4.0.0"},"gitHead":"1acd8d198982f63302f7c8d7640e50d1efa67ea6","bugs":{"url":"https://github.com/webpack-contrib/webpack-log/issues"},"_id":"webpack-log@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"9.2.0","_npmUser":{"name":"shellscape","email":"andrew@shellscape.org"},"dist":{"integrity":"sha512-9AeZ12uxaS+DGpcIInWxNuoJMW2JbAc45bkn3fhWcdl4wK36MAq/yiyiITt5IS0TaZWjtLIWxwULCuT9V7/xoA==","shasum":"a0c7beb385245da7b2172afe46c02cf3a471ef31","tarball":"http://registry-npm.ywwl.com/webpack-log/download/webpack-log-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHB3Du3al7UqloHYb/NugtyQv52lM9d5AzWGNyXp6aSiAiEAiC8kA6qKP6uGW0nFHfjY3+Kd+UFopB/VqqkpBapMoks="}],"size":3419,"noattachment":false,"key":"/webpack-log/-/webpack-log-1.1.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webpack-log-1.1.1.tgz_1515331696703_0.302024363540113"},"directories":{},"readme":"[tests]: \thttps://img.shields.io/circleci/project/github/shellscape/webpack-log.svg\n[tests-url]: https://circleci.com/gh/shellscape/webpack-log\n\n[cover]: https://codecov.io/gh/shellscape/webpack-log/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/shellscape/webpack-log\n\n[size]: https://packagephobia.now.sh/badge?p=webpack-log\n[size-url]: https://packagephobia.now.sh/result?p=webpack-log\n\n<div align=\"center\">\n\t<img width=\"180\" src=\"https://raw.githubusercontent.com/shellscape/webpack-log/master/assets/log.svg?sanitize=true\" alt=\"webpack-log\"><br/><br/>\n</div>\n\n[![tests][tests]][tests-url]\n[![cover][cover]][cover-url]\n[![size][size]][size-url]\n[![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)\n\n# webpack-log\n\nA logger for the Webpack ecosystem.\n\n<a href=\"https://www.patreon.com/shellscape\">\n  <img src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\">\n</a>\n\n_Please consider donating if you find this project useful._\n\n## Requirements\n\nThis module requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+).\n\n## Install\n\nUsing npm:\n\n```console\nnpm install webpack-log --save-dev\n```\n\n## Usage\n\nCreate a new logger and use it to log something wild:\n\n```js\nconst getLogger = require('webpack-log');\nconst log = getLogger({ name: 'webpack-batman' });\n\nlog.info('Jingle Bells, Batman Smells');\nlog.warn('Robin laid an egg');\nlog.error('The Batmobile lost a wheel');\nlog.debug('And the Joker got away');\n```\n\nAnd there will appear magic in your console:\n\n<div align=\"center\">\n\t<img width=\"369\" src=\"assets/demo.png\" alt=\"console magic\"><br/><br/>\n</div>\n\n## Options\n\n### `level`\nType: `String`<br>\nDefault: `info`\n\nSpecifies the level the logger should use. A logger will not produce output for\nany log level _beneath_ the specified level. Valid level names, and their order are:\n\n```js\n[\n  'trace',\n  'debug',\n  'info',\n  'warn',\n  'error',\n  'silent'\n]\n```\n\nFor example, If a level was passed as `{ level: 'warn'}` then only calls to `warn` and `error` will be displayed in the terminal.\n\n### `name`\nType: `String`<br>\nDefault: `<webpack-log>`\n\nSpecifies the name of the logger to create. This value will be part of the log output prefix.\n\n### `timestamp`\nType: `Boolean`<br>\nDefault: `false`\n\nIf `true`, the logger will display a timestamp for log output, preceding all other data\n\n### `unique`\nType: `Boolean`<br>\nDefault: `true`\n\nIf `false`, the logger will use cached versions of a log with the same name. Due to the nature of the `webpack` ecosystem and multiple plugin/loader use in the same process, loggers are created as unique instances by default.\n\n## Meta\n\n[CONTRIBUTING](./.github/CONTRIBUTING.md)\n\n[LICENSE (Mozilla Public License)](./LICENSE)\n","publish_time":1515331697605,"_cnpm_publish_time":1515331697605,"dist-tags":{"latest":"3.0.2"}}