 noflo = require("noflo")
+_ = require("underscore")
 _s = require("underscore.string")
 print = require("node-print")
+util = require("util")
 
 format = "%13s | %s"
+padding = "              | "
 log = []
 count = 0
+options =
+  showHidden: false
+  depth: 2
+  colors: false
 
 flush = ->
   console.log "---------- NEW STREAM ----------"

  constructor: ->
    @inPorts =
      in: new noflo.Port
    @outPorts =
      out: new noflo.Port

    @inPorts.in.on "connect", =>
      count++


display = (log) ->
  for packet, i in log
    packet = util.inspect packet,
      options.showHidden, options.depth, options.colors
    packet = packet.replace /\n/g, "\n#{padding}"
    print.pf format, "DATA", packet
    delete log[i]

