Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@storybook/node-logger
Advanced tools
Any node logging that is done through storybook should be done through this package.
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.
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');
Winston is a multi-transport async logging library for Node.js. Compared to @storybook/node-logger, Winston offers more flexibility and customization options, including multiple storage options for logs, custom log levels, and the ability to query logged data.
Bunyan is a simple and fast JSON logging library for Node.js services. It provides a similar structured logging approach as @storybook/node-logger but with additional features like log rotation, stream-based logging, and a dedicated CLI for better log viewing.
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
7.0.0-beta.26 (January 14, 2023)
ui/node_modules
#20601main.js
options #20054FAQs
Unknown package
The npm package @storybook/node-logger receives a total of 3,010,081 weekly downloads. As such, @storybook/node-logger popularity was classified as popular.
We found that @storybook/node-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.