@changesets/logger
Console log alias
Last updated 6 years ago by changesets-release-bot .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @changesets/logger 
SYNC missed versions from official npm registry.

@changesets/logger

View changelog

Usage

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:

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("Yay, I am logged");

Current Tags

  • 0.1.1                                ...           latest (2 years ago)
  • 1.0.0-next.1                                ...           next (5 months ago)

9 Versions

  • 1.0.0-next.1                                ...           5 months ago
  • 1.0.0-next.0                                ...           a year ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |