Socket
Socket
Sign inDemoInstall

@storybook/node-logger

Package Overview
Dependencies
Maintainers
5
Versions
1743
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/node-logger


Version published
Weekly downloads
9.2M
increased by3.89%
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.10 (July 2, 2022)

Features

  • Addon-docs: Include Vue methods in ArgsTable (#18609)
  • UI: Fix default theme according to preferred color scheme (#17311)
  • Storyshots: Add SnapshotsWithOptionsArgType (#15712)
  • Controls: Add max length config to text control (#14396)

Bug Fixes

  • CLI/HTML: Improve HTML typescript stories (#18618)
  • Controls: Throttle color controls and make updateArgs and resetArgs stable (#18335)
  • Controls: Silence unexpected control type enum for color matchers (#16334)
  • UI: Stop add-on Draggable from overlapping the vertical scrollbar when stories overflow (#17663)
  • React: Fix source snippet decorator for story functions with suspense (#17915)
  • Core: Avoid logging an object on compilation errors (#15885)
  • UI: Fix router handling of URLs containing "settings" (#16245)
  • UI: Fix viewMode handling on navigation (#16912)
  • UI: Fix loading title (#17935)

Maintenance

  • Examples/Vue: Fix missing a vue-template-compiler dependency (#17485)
  • Fix homepage core-server (#18121)
  • UI: Replace references to themes.normal with themes.light (#17034)

Dependency Upgrades

  • Upgrade file-system-cache to 2.0.0 and remove custom types (#18253)
  • Security: Update x-default-browser and fix issue with package. (#18277)
  • Update puppeteer dependencies version (#15163)
  • Upgrade react-syntax-highlighter to v15.5.0 (#18009)

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 02 Jul 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