UNPKG

nsyslog

Version:

Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations

17 lines (14 loc) 308 B
const cluster = require('../lib/cluster'), wm = require('../lib/watermark'); async function init() { if(cluster.isMaster) { cluster.fork(`${__dirname}/test_watermark.js`,[]); } else { console.log("child start"); let data = await wm.get('file'); console.log(data); } } init();