{"name":"@changesets/logger","version":"0.0.1","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":{"@changesets/types":"^0.3.1","@types/node":"^12.7.11","chalk":"^2.1.0"},"devDependencies":{"jest-fixtures":"^0.5.0","outdent":"^0.5.0"},"_id":"@changesets/logger@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"noviny","email":"benjaminconolly@gmail.com"},"dist":{"integrity":"sha512-l0n8ULkg3q9zdN2ICzJaBD5WuGGq5j7iK7olh9Fr1KWw59xaSot/vSl3laLL84BS99vy86K1ZyGbjI3LrZ9f/w==","shasum":"a6788e359e9f1d641e74d883a0d23a7c26b09b96","tarball":"http://registry-npm.ywwl.com/@changesets/logger/download/@changesets/logger-0.0.1.tgz","fileCount":11,"unpackedSize":8605,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdunubCRA9TVsSAnZWagAAx/kP/1kEdm2TnbVKjbH9vu31\n6dtL8jfAjrTbTzCZVCoz/ONYDvhCaDXopiIkLIbNpVrzSD79XRDAV/10N3+c\nprEPhIpK/rwH3/gSizjPnAYBnIesxKdb/I+E6Zv4uI31tPDaJICUI8UOps33\nN0zxKzaVaeV4oo9wMZzvtRcDNnwid328H2GMRxcDiEZPTJeoYDhelV8Utk5q\nJpC8tQzsf0DbLE3cqLSsBtONqW+tI5OF1EYfLc45Ghjw6dJiuyDk67xQ507U\nImhLMDjzhuqZhSJy48C8e7Z8M4mhhUGzCiPMnUafYI6sZ13Z6hSEBjaDur75\nXYRsZSw5DF0qePdzBPeaE8DQY6HojUgBwxncp/hLdrCO7bnzhjgHKdDQLfae\nFyx1Qo/tCHuZTgNBnlbKqj3RNXTPehMIyEZzduIa0+aqHM0rXV3y6ZhMtctp\npTOwIS/t87ukqzOxlDQQ9Fvqyb0ad7hqGCv9zpVMeE/XuyGli5dRW7cn5mLM\nPlSr9rs6GI7IFWIW5lL7ZH4RdO1PeTUIf4PQW6jIf2TNT4kz5bR1apLuvuNV\nenzgFEdyXa2g4Mrmqxz2y9NDnvy+RUp4HSxeBDz3QE0AxRMKOMaxHTnCeGYV\n31kS3nYYdpxkApytWJYdl2yP0OV7XIqnQCWheu4vHPc4+FZ53mbguQpUkm1n\npZ+3\r\n=nQ7N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEx16UIrevbDr//In9M9s0GcDGISZqFr8B8ajOi0QTuRAiBe63C4XowTxNa54PeYfMKfgPY74K6xBOso4qzLsFaHNg=="}],"size":2618,"noattachment":false,"key":"/@changesets/logger/-/@changesets/logger-0.0.1.tgz"},"maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_0.0.1_1572502427267_0.7220422311744381"},"_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":1572502427416,"_cnpm_publish_time":1572502427416,"dist-tags":{"latest":"1.0.0","next":"1.0.0-next.4"}}