netlogger
v1.0.2
Published
Network Logging Library for Node.js
Downloads
137
Readme
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