Socket
Socket
Sign inDemoInstall

@storybook/client-logger

Package Overview
Dependencies
Maintainers
5
Versions
1825
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/client-logger

Any client-side logging that is done through storybook should be done through this package.


Version published
Weekly downloads
12M
decreased by-2.96%
Maintainers
5
Created
Weekly downloads
 

Package description

What is @storybook/client-logger?

The @storybook/client-logger package is a utility for logging messages in the Storybook client application. It provides a consistent way to handle logging with different levels such as debug, info, warn, and error. It is mainly used within the Storybook ecosystem to output messages to the console in a standardized format.

What are @storybook/client-logger's main functionalities?

Logging debug messages

This feature allows developers to log debug messages which can be useful during development to understand the flow of the application or to diagnose issues.

import { logger } from '@storybook/client-logger';
logger.debug('Debug message');

Logging informational messages

This feature is used to log informational messages that can provide insights into the application's state or actions that have been taken.

import { logger } from '@storybook/client-logger';
logger.info('Informational message');

Logging warnings

This feature is used to log warnings which might not be critical but still require attention or might lead to potential issues.

import { logger } from '@storybook/client-logger';
logger.warn('Warning message');

Logging errors

This feature is used to log error messages which are critical and usually indicate that something has gone wrong in the application.

import { logger } from '@storybook/client-logger';
logger.error('Error message');

Other packages similar to @storybook/client-logger

Changelog

Source

7.0.0-alpha.57 (December 3, 2022)

Bug Fixes
  • Vite: Reinstate (deprecated) StorybookViteConfig #20057
  • Docs: using targeted styles, not components to style MDX #19958
  • Docs: Return to filtering toolbars in docs mode, but don't filter menu #19959
  • Angular: Don't set argType.defaultValue in angular/compodoc #19935
  • NextJS: Support next/image component in v12/13 properly #20028
  • Svelte: Use JSDocs in JS CLI templates and put manual enum arg type back as it is not inferred #20042
Maintenance
  • CLI: Add a new version-update check telemetry event #20074
  • CLI: Add upgrade telemetry details #20064
  • Core: added .entries property to error thrown when duplicate stories are present #20038
Build
  • Improve framework version specific story handling #20027
  • Fix repro templates script #20063
  • Build: replace image placeholder url in example stories for nextjs #20069
  • Build: improve inDevelopment mode for yarn task #20067
  • Build: revamp interactions e2e test #20060
Dependency Upgrades
  • Build: Update jest pretty-format to 29 #20047

Readme

Source

Storybook Logger

Any client-side logging that is done through storybook should be done through this package.

Examples:

import { logger } from '@storybook/client-logger';

logger.info('Info message');
logger.warn('Warning message');
logger.error('Error message');

For more information visit: storybook.js.org

Keywords

FAQs

Package last updated on 03 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc