Socket
Socket
Sign inDemoInstall

@storybook/node-logger

Package Overview
Dependencies
32
Maintainers
5
Versions
1737
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @storybook/node-logger

Any node logging that is done through storybook should be done through this package.


Version published
Weekly downloads
9.2M
increased by3.25%
Maintainers
5
Install size
2.55 MB
Created
Weekly downloads
 

Package description

What is @storybook/node-logger?

The @storybook/node-logger package is a utility for logging within the Storybook ecosystem, specifically tailored for Node.js environments. It provides a standardized way to handle logging across different parts of Storybook applications, making it easier to debug and maintain code.

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

Customizable logging levels

This feature allows developers to log messages at different levels (info, warn, error), which can be useful for filtering logs based on their importance or severity.

const { logger } = require('@storybook/node-logger');

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

Consistent log formatting

Ensures that all log messages follow a consistent format, making it easier to read and analyze logs.

const { logger } = require('@storybook/node-logger');

logger.info('Starting application...');
logger.error('Failed to start application');

Other packages similar to @storybook/node-logger

Changelog

Source

7.0.0-alpha.33 (September 13, 2022)

Features
  • Core: Add a new throwPlayFunctionExceptions parameter #19143
Bug Fixes
  • Fix issue in instrumenter with waitFor #19145
  • Core: Fix static dirs targeting same destination #19064
  • React: Fix issue with react 18 implementation #19125
  • CLI: Fix spawning child processes on windows #19019
  • Vite: Ensure we set DOCS_OPTIONS in the vite builder #19127
Maintenance
  • Build: Bundle @storybook/cli with tsup #19138
  • Examples: Remove cra-ts-essentials #19170
  • Added some basic interactions stories #19153
  • Presets: Replace config with previewAnnotations, remove previewEntries #19152
  • Addon-links: Move stories into addon #19124
  • Addon-a11y: Move stories into addon #19114
  • Toolbars: Generic example stories #19166
  • TypeScript: Revert a few @ts-expect-errors #19168
  • Addon-docs: Generic stories for DocsPage #19162
  • Controls: Generic stories for sorting #19161
  • Build: Generic stories for addon-controls #19149
  • remove node12 from the matrix #19147
  • Build libs/router with ts-up #19140
  • Build: Bundle addon-interactions with tsup #19139
  • Generic stories for remaining core features #19118
  • Add parameter, loader and decorator stories to lib/store #19105
  • Convert @ts-ignore to @ts-expect-error #19122
Dependency Upgrades
  • Upgrade emotion deps again #19054

Readme

Source

Storybook Logger

Any node logging that is done through storybook should be done through this package.

Examples:

import { logger } from '@storybook/node-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 13 Sep 2022

Did you know?

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