Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@icon-magic/logger
Advanced tools
This package is responsible for exposing all the logging functionality for icon-magic. It contains a wrapper around winston.js for including the filename from where the logs are generated as a label in the logged message.
Logs are written to the following simulataneously:
// Import the logger module and it's interface
import { Logger, logger } from '@icon-magic/logger';
// Instantiate by passing the name of the file. This will be a label in the log message
const LOGGER: logger = logger('icon-magic:icon-models:asset');
// Log a debug message
LOGGER.debug('Icon generation has begun');
// Log an error message
LOGGER.error('Oh no! An error has occurred!');
This will print logs of the following format:
<timestamp> [<label>] <logLevel> <msg>
For example,
2019-05-15T17:40:40.056Z [icon-magic:icon-models:asset] debug: Asset test created in /Users/rchitloo/workspace/artdeco-icons-source_trunk/icons/shadows
2019-05-15T17:40:40.060Z [icon-magic:icon-models:asset] debug: Asset creatingError created in /Users/rchitloo/workspace/artdeco-icons-source_trunk/icons/shadows
2019-05-15T17:40:40.060Z [icon-magic:icon-models:icon] error: MissingVariantError: Variant /Users/rchitloo/workspace/artdeco-icons-source_trunk/icons/shadows/creatingError.svg missing for icon /Users/rchitloo/workspace/artdeco-icons-source_trunk/icons/shadows
The logger
object exposes the following methods from winston.logger
FAQs
Icon magic logger package.
The npm package @icon-magic/logger receives a total of 7 weekly downloads. As such, @icon-magic/logger popularity was classified as not popular.
We found that @icon-magic/logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.