node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

netlogger

netlogger

Network logging library for node.js

Installation

npm install netlogger

Usage:

    var NetLogger = require('netlogger');
    
    var netLogger = new NetLogger({
      logPort: 4000,
      logHost: '225.0.0.1',
    }, 'Test Procesess');

To listen messages from network:

    netLogger.listen();

To broadcast log messages:

    netLogger.log("This is a log message")

You can optionally provide a callback to wait for message before continue:

    netLogger.log("This is a log message", function() {
      /// ... 
    });

Contributions

Please open PR