Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
molindo-node-logger
Advanced tools
A node.js logger that integrates well with the Molindo infrastructure.
A node.js logger that integrates well with the Molindo infrastructure.
stderr
, while all other levels are printed to stdout
.unhandledRejection
errors thrown from promises are logged as well.operationName
in the case of GraphQL requests. Confidential headers like cookie
or authorization
are masked.ERROR
(40000), WARN
(30000), INFO
(20000), DEBUG
(10000), TRACE
(5000).import Logger from 'molindo-node-logger';
const logger = new Logger({service: 'pizza-shop'});
logger.trace('Making a salami pizza …');
logger.debug('Adding salami …');
logger.info('Putting it in the oven …');
logger.warn('Don\'t forget to get it out in time …');
logger.error('Oh no, the pizza is burned!');
In production, printed JSON will look like this (except that it's not pretty printed):
{
"service": "pizza-shop",
"@timestamp": "2017-10-19T08:26:13.168Z",
"level": "INFO",
"level_value": 20000,
"message": "Pizza is ready!"
}
If you're running an express server, you can register the logger middleware to log HTTP requests.
import express from 'express';
import Logger, {createLoggerMiddleware} from 'molindo-node-logger';
const server = express();
const logger = new Logger({service: 'pizza-shop'});
server.use(createLoggerMiddleware({logger}));
FAQs
A node.js logger that integrates well with the Molindo infrastructure.
The npm package molindo-node-logger receives a total of 17 weekly downloads. As such, molindo-node-logger popularity was classified as not popular.
We found that molindo-node-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.