
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
cluster-logger
Advanced tools
Get your worker child processes logs to show up in Cloudwatch or Papertrail when using cluster in NodeJS
Install cluster-logger
npm install cluster-logger
require
it in your cluster script.
require('cluster-logger')
You're done.
This is a very simple solution to a very specific problem.
You are using the new cluster
module in NodeJS. And you find that the logs of your spawned processes are not appearing in your
production log tracker.
This module simply proxies console.log
and console.error
to process.send({ type: 'log', message: ... })
.
It also creates a listener in the master process, to receive those logs and spit them out in the main stdio stream.
FAQs
Cluster worker logs are proxied to the mater process
We found that cluster-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.