Socket
Socket
Sign inDemoInstall

@storybook/node-logger

Package Overview
Dependencies
4
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
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.35 (October 5, 2022)

Features
  • Angular: Disable ngcc when not needed #19307
  • Vite: Add vue-vite framework for Vue2 #19230
  • Storyshots-puppeteer: Add browserLaunchOptions to CommonConfig #18927
Bug Fixes
  • Vite: Fix svelte docgen and svelte-native stories #19339
  • CLI: Exclude @storybook/testing-react from outdated check #19272
  • Interactions: Fix path to checkActionsLoaded #19334
  • Webpack: Fix resolution of webpack config relating to resolve fallbacks (assert) #19358
  • Vite: Add vite framework plugin if not found #19259
  • Vue2: Fix play function within & args updating in decorators #19207
Maintenance
  • Addon-docs: Remove STORYBOOK_REACT_CLASSES and global/globals.ts #19300
  • Cleanup premature merge #19332
  • CLI: Update sb add for main.js #19312
  • React: Move argType stories to template/stories folder #19265
Build
  • Build: Add react17 + webpack5 template #19342
  • Build: Add react18 + webpack5 template #19341
  • Build: Forward parameters in nx command execution #19283
  • Build: cleanup after moving to tsup #19268
  • Build: change the vue e2e test to use webpack5, since we stopped supporting webpack4 in 7.0 #19257
  • Build: Add vue-cli/vue2 repro template #19314
  • Build: Bundle addons-actions with ts-up #18775
  • Build: Bundle lib/addons with ts-up #18805
  • Build: improve the tsconfig #19346
  • Build: Bundle lib/telemetry with ts-up #19317
  • Build: Bundle lib/store with tsup #19308
  • Build: Bundle lib/source-loader with ts-up #19313
  • Build: Bundle lib/csf-tools with ts-up #18914
  • Build: Bundle lib/core-client with ts-up #19276
  • Build: Bundle lib/client-api with ts-up #19271
  • Build: Bundle lib/postinstall with ts-up #19327
  • Build: Add react18 + webpack5 template #19341
  • Build: Remove cypress from monorepo #19303
  • Build: Disable smoke test on cra/default-ts #19352
  • Build: Fix prepare bundle on Windows #19243
  • Build: Bundle addons/essentials with ts-up #19322

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 05 Oct 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