# @motss-changesets/logger

> Console log alias

Latest version **0.0.9** (published 2022-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @motss-changesets/logger
pnpm add @motss-changesets/logger
yarn add @motss-changesets/logger
bun add @motss-changesets/logger
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2022-11-06 |
| First published | 2022-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12451 |
| Maintainers | motss |

## Links

- npm: https://www.npmjs.com/package/@motss-changesets/logger
- Repository: https://github.com/changesets/changesets.git#main
- Homepage: https://github.com/changesets/changesets/tree/main#readme
- Issues: https://github.com/changesets/changesets/issues
- npm.io page: https://npm.io/package/@motss-changesets/logger

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) ^2.1.0

## Recent versions

- 0.0.9 (latest) — 2022-11-06
- 0.0.8 — 2022-11-06
- 0.0.7 — 2022-11-06
- 0.0.6 — 2022-11-06

## README

## @changesets/logger

[![View changelog](https://img.shields.io/badge/changelogs.xyz-Explore%20Changelog-brightgreen)](https://changelogs.xyz/@changesets/logger)

### Usage

```js
import { error } from '@changesets/logger";

error('message part 1', 'message part 2');
```

### Package Exports

**error**: Use `error` to print error messages upon which users which immediately action to complete the task.

**info**: Use `info` to print informational messages to user.

**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.

**success**: Use `success` to assert to users that their instructions have completed successfully.

**warn**: Use `warn` to print warning messages, something that user could action on now or later without much impact of their work.

### Silencing Messages In Tests

Use the `@changesets/test-utils` package to silence the logs in test cases.

For example:

```js
import { temporarilySilenceLogs } from "@changesets/test-utils";
import { log } from "@changesets/logger";

temporarilySilenceLogs();

// Now the logs in this test file are not actually logged to std out
log("I am not logged");

// Use console.log to log messages in tests if required
console.log("Yiey, I am logged");
```

---
_Source: https://npm.io/package/@motss-changesets/logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
