Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

cluster-logger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

cluster-logger

Cluster worker logs are proxied to the mater process

unpublished
latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

cluster-logger

Get your worker child processes logs to show up in Cloudwatch or Papertrail when using cluster in NodeJS

Getting Started

Install cluster-logger

npm install cluster-logger

require it in your cluster script.

require('cluster-logger')

You're done.

What is this, why don't I need it?

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.

Keywords

cluster

FAQs

Package last updated on 27 Feb 2016

Did you know?

Socket

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.

Install

Related posts