{"name":"@changesets/logger","version":"1.0.0-next.0","license":"MIT","_id":"@changesets/logger@1.0.0-next.0","maintainers":[{"name":"noviny","email":"benjaminconolly@gmail.com"},{"name":"changesets-release-bot","email":"automation+changesets@thinkmill.com.au"},{"name":"emmatown","email":"npm@emmas.town"},{"name":"andarist","email":"mateuszburzynski@gmail.com"}],"homepage":"https://github.com/changesets/changesets/tree/main#readme","bugs":{"url":"https://github.com/changesets/changesets/issues"},"dist":{"shasum":"b2b66f2c8528a33f8d68ec726065a02fcb620919","tarball":"http://registry-npm.ywwl.com/@changesets/logger/download/@changesets/logger-1.0.0-next.0.tgz","fileCount":8,"integrity":"sha512-zI5dt9YoYKP509J9aSjhjpGaEReD3eLIr+jt9nW12YRy2hK9oyeJhPUKXzGGLoZMIC8R9gHL4BfhS+xw9jUMxw==","signatures":[{"sig":"MEQCIAPQaE2cVpJpRjR80XZPagqKqHVnB+3AmqkNaLO0sxywAiBhzx0gY9WXCsbZuw6+58/oq6sA3YJHwL7NLMMQsaEjTw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9138,"size":3137,"noattachment":false,"key":"/@changesets/logger/-/@changesets/logger-1.0.0-next.0.tgz"},"type":"module","engines":{"node":">=18.0.0"},"exports":{".":"./dist/changesets-logger.js","./package.json":"./package.json"},"gitHead":"771dc07bd7921f547f39d20d93c758e6e8cf3c1c","_npmUser":{"name":"changesets-release-bot","email":"automation+changesets@thinkmill.com.au"},"repository":{"url":"git+https://github.com/changesets/changesets.git#main","type":"git"},"_npmVersion":"10.9.2","description":"Console log alias","directories":{},"_nodeVersion":"22.14.0","dependencies":{"picocolors":"^1.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vitest":"^3.0.6"},"_npmOperationalInternal":{"tmp":"tmp/logger_1.0.0-next.0_1745238362401_0.8279958930314362","host":"s3://npm-registry-packages-npm-production"},"readme":"## @changesets/logger\n\n[![Open on npmx.dev](https://npmx.dev/api/registry/badge/version/@changesets/logger?name=true)](https://npmx.dev/package/@changesets/logger)\n[![View changelog](https://npmx.dev/api/registry/badge/version/@changesets/cli?color=229fe4&value=View+changelog&label=+)](./CHANGELOG.md)\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":1745238362596,"_cnpm_publish_time":1745238362596,"dist-tags":{"latest":"1.0.0","next":"1.0.0-next.4"}}