Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@storybook/client-logger
Advanced tools
Any client-side logging that is done through storybook should be done through this package.
The @storybook/client-logger package is a utility for logging messages in the Storybook client application. It provides a consistent way to handle logging with different levels such as debug, info, warn, and error. It is mainly used within the Storybook ecosystem to output messages to the console in a standardized format.
Logging debug messages
This feature allows developers to log debug messages which can be useful during development to understand the flow of the application or to diagnose issues.
import { logger } from '@storybook/client-logger';
logger.debug('Debug message');
Logging informational messages
This feature is used to log informational messages that can provide insights into the application's state or actions that have been taken.
import { logger } from '@storybook/client-logger';
logger.info('Informational message');
Logging warnings
This feature is used to log warnings which might not be critical but still require attention or might lead to potential issues.
import { logger } from '@storybook/client-logger';
logger.warn('Warning message');
Logging errors
This feature is used to log error messages which are critical and usually indicate that something has gone wrong in the application.
import { logger } from '@storybook/client-logger';
logger.error('Error message');
Winston is a multi-transport async logging library for Node.js. It is designed to be a simple and universal logging library with support for multiple transports. Compared to @storybook/client-logger, winston offers more flexibility and is more suitable for server-side logging with various outputs such as files, consoles, or remote services.
Pino is a very low overhead Node.js logger, which is inspired by Bunyan. It provides a very fast logging capability and includes a CLI tool for pretty-printing log files. Pino is more focused on performance and is suitable for production logging, whereas @storybook/client-logger is more tailored for logging within the Storybook client environment.
Log4js is a logging framework for Node.js, which supports multiple appenders, log levels, and categories. It is similar to the Log4j library for Java. Log4js is more complex and configurable compared to @storybook/client-logger, making it a good choice for large applications that require detailed logging configurations.
Any client-side logging that is done through storybook should be done through this package.
Examples:
import { logger } from '@storybook/client-logger';
logger.info('Info message');
logger.warn('Warning message');
logger.error('Error message');
For more information visit: storybook.js.org
7.0.0-beta.31 (January 20, 2023)
ArgTypes
component and stories #20664context.resolveOf
#20662FAQs
Unknown package
The npm package @storybook/client-logger receives a total of 6,042,416 weekly downloads. As such, @storybook/client-logger popularity was classified as popular.
We found that @storybook/client-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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.