var loggers = require("bit-bundler/loggers");
var loaderFilter = require("bit-bundler/loggers/loaderFilter");
var JSONStream = require("JSONStream");

module.exports = {
  log: loggers.sequence(loaderFilter(), JSONStream.stringify(false), process.stdout),
  src: "src/main.js",
  dest: "dist/out.js"
};

const loggers = require("bit-bundler/loggers");
const loaderFilter = require("bit-bundler/loggers/loaderFilter");
const JSONStream = require("JSONStream");
const net = require("net");

// TCP client to write to logstash with.
const client = net.createConnection({ port: 9400 });

module.exports = {
  log: loggers.sequence(loaderFilter(), JSONStream.stringify(false), client),
  src: "src/main.js",
  dest: "dist/out.js",

  notifications: [{
    "build-end": () => {
      client.end();
    }
  }]
};

Adjust the bit-bundler config file to pipe data to a TCP connection logstash is listening on
Adjust the bit-bundler config file to pipe data to a TCP connection logstash is listening on
