Socket
Socket
Sign inDemoInstall

@storybook/node-logger

Package Overview
Dependencies
0
Maintainers
9
Versions
1657
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @storybook/node-logger


Version published
Weekly downloads
9M
increased by1.1%
Maintainers
9
Install size
165 kB
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

8.0.5

  • Addon-docs: Fix react-dom/server imports breaking stories and docs - #26557, thanks @JReinhold!
  • Automigrations: Fix missing support for mts vite config - #26441, thanks @drik98!
  • CLI: Improve Yarn berry error parsing - #26616, thanks @yannbf!
  • React-Docgen: Make sure to be able to handle empty unions - #26639, thanks @kasperpeulen!
  • Viewport: Fix missing style - #26530, thanks @jpzwarte!

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 28 Mar 2024

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc