{"name":"@changesets/logger","version":"0.0.5","description":"Console log alias","main":"dist/logger.cjs.js","module":"dist/logger.esm.js","license":"MIT","repository":{"type":"git","url":"https://github.com/changesets/changesets/tree/master/packages/logger"},"dependencies":{"chalk":"^2.1.0"},"_id":"@changesets/logger@0.0.5","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-gJyZHomu8nASHpaANzc6bkQMO9gU/ib20lqew1rVx753FOxffnCrJlGIeQVxNWCqM+o6OOleCo/ivL8UAO5iFw==","shasum":"68305dd5a643e336be16a2369cb17cdd8ed37d4c","tarball":"http://registry-npm.ywwl.com/@changesets/logger/download/@changesets/logger-0.0.5.tgz","fileCount":11,"unpackedSize":9599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelvoyCRA9TVsSAnZWagAADBQP/iWRkXI+dgI9UVoAR6WB\ngVRXzcBn7K3mQvaL9KJwWtW0U1q3W48dC1u1t2K+McHCbasIJ3HzN40hWbzv\nSNTWYK9WnoPdQ0K+ZMdH3E51mY2aI+BWfdUYWxHwdzCzFkaz+IDikMrK0Kkk\nGYywxlVMlgUrVi3EmhXM9Z0PEdQj92zMcK+ogxsxnyOr3Eb/jrRbYe8HwHws\npdWbaCvApIZdGwEM3929etb3IHMG5u33sOO6Awx1vcPGenEdWqws4eAHCVLO\nSFHn49NpR0VaB7t09zVuxL5fvGJTnvRDI0EsDCIOe8MO2bK75LuQNctpSWis\ndS3x11Eu6AZquizc69bt6ian/laSRP39UWnpTYsujuCbGnKdcgbILSVQJchL\nI491F1bMfVUD3zykSkMffUCJRaR0pjM62RUhaBe3K2SNLnzYb3xif7l9rkdF\nabOyvjE8BmbQ0o8VEUCabIJ3g31nlxCLrTWkMsk3mrQylb8Kc6iQTMyMVRYK\n6AkQigaK10HxqufKQA88dK91os9IPSxN21MQBbBpowq4FLnntmM0rYc5jnrG\n+ouSuop6TySI47NzWMotIuU5sHW/C9GN0wT7hNuRBUYnkqm7Xp8M3tCJ5Hhr\nUnk2FuFUhEhTYpcL6uHXd+fbaPXl9VUsyS27r/pLtmggUOCNv6FWpipoAFwG\nwoEQ\r\n=gtZa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkI9Hpmqo7bVbiv3A0UJMJMa/KyT00Q7IHiOB5xDAgjAiB6/ksSkaR4D82rq0pUSXgIYRUMmToDpj66igc+mj/LSQ=="}],"size":2912,"noattachment":false,"key":"/@changesets/logger/-/@changesets/logger-0.0.5.tgz"},"maintainers":[{"email":"automation+changesets@thinkmill.com.au","name":"changesets-release-bot"},{"email":"mitchell@mitchellhamilton.me","name":"mitchellhamilton"},{"email":"benjaminconolly@gmail.com","name":"noviny"}],"_npmUser":{"name":"changesets-release-bot","email":"automation+changesets@thinkmill.com.au"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_0.0.5_1586952753427_0.5095330983518418"},"_hasShrinkwrap":false,"readme":"## @changesets/logger\n\n[![View changelog](https://img.shields.io/badge/changelogs.xyz-Explore%20Changelog-brightgreen)](https://changelogs.xyz/@changesets/logger)\n\n### Usage\n\n```js\nimport { error } from '@changesets/logger\";\n\nerror('message part 1', 'message part 2');\n```\n\n### Package Exports\n\n**error**: Use `error` to print error messages upon which users which immediately action to complete the task.\n\n**info**: Use `info` to print informational messages to user.\n\n**log**: Use `log` to print messages don't fall in any other specific category. For example, message to show title of the step being performed by the changesets tool.\n\n**success**: Use `success` to assert to users that their instructions have completed successfully.\n\n**warn**: Use `warn` to print warning messages, something that user could action on now or later without much impact of their work.\n\n### Silencing Messages In Tests\n\nUse the `@changesets/test-utils` package to silence the logs in test cases.\n\nFor example:\n\n```js\nimport { temporarilySilenceLogs } from \"@changesets/test-utils\";\nimport { log } from \"@changesets/logger\";\n\ntemporarilySilenceLogs();\n\n// Now the logs in this test file are not actually logged to std out\nlog(\"I am not logged\");\n\n// Use console.log to log messages in tests if required\nconsole.log(\"Yay, I am logged\");\n```\n","publish_time":1586952753823,"_cnpm_publish_time":1586952753823,"dist-tags":{"latest":"1.0.0","next":"1.0.0-next.4"}}