Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

netlogger

1.0.2 • Public • Published

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

install

npm i netlogger

Downloadsweekly downloads

0

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability