Socket
Socket
Sign inDemoInstall

@storybook/client-logger

Package Overview
Dependencies
1
Maintainers
5
Versions
1751
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/client-logger


Version published
Maintainers
5
Install size
80.8 kB
Created

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-beta.7 (December 14, 2022)

Features
  • CLI: Add Next.js framework automigration #19574
Bug Fixes
  • Don't export renderer from framework #20259
  • Upgrade sb dep as well in sb upgrade #20258
  • Vite: Make the bail function work if the server fails to start #20243
  • Csf-tools: Fix local vars handling in MDX-generated CSF #20255
  • Csf-plugin: Fix spurious storiesOf warnings #20256
  • Core: Remove unnecessary peer deps #20231
  • Fix issues with running SSv6 #20253
  • Core: Fix config.base relative paths #20232
  • Fix: vite devmode with storyStoreV6 by ensuring singleton via global #20207
Maintenance
  • Addon-docs: Upgrade mdx2-csf and use its JSX handling #20261
  • Vite: Use mdx2 babel pre-processing #20241
  • Addon-docs: Restore deprecated blocks entry point #20246
Build
Dependency Upgrades
  • Add optional TypeScript peer dependency #20244

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

Last updated on 14 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc