lib/gelf-manager.js
function GELFManager(options) {

  if (typeof options === 'undefined') options = {};
  for (k in GELFManager.options)
    if (typeof options[k] === 'undefined')
      options[k] = GELFManager.options[k];

  this.debug        = options.debug;
  this.chunkTimeout = options.chunkTimeout;
  this.gcTimeout    = options.gcTimeout;

  EventEmitter.call(this);
  this.chunksPool = {};

  process.nextTick(this._gc.bind(this));

}
function GELFManager(options) {

  if (typeof options === 'undefined') options = {};
  for (k in GELFManager.options)
    if (typeof options[k] === 'undefined')
      options[k] = GELFManager.options[k];

  this.debug        = options.debug;
  this.chunkTimeout = options.chunkTimeout;
  this.gcTimeout    = options.gcTimeout;

  EventEmitter.call(this);
  this.chunksPool = {};

  process.nextTick(this._gc.bind(this));

}
function GELFManager ( options ) { if ( typeof options === 'undefined' ) options = { } ; for ( k in GELFManager . options ) if ( typeof options [ k ] === 'undefined' ) options [ k ] = GELFManager . options [ k ] ; this . debug = options . debug ; this . chunkTimeout = options . chunkTimeout ; this . gcTimeout = options . gcTimeout ; EventEmitter . call ( this ) ; this . chunksPool = { } ; process . nextTick ( this . _gc . bind ( this ) ) ; }
GELFManager - Handles GELF messages

Example:

var manager = new GELFManager();
manager.on('message', function(msg) { console.log(msg); });
manager.feed(rawUDPMessage);
GELFManager - Handles GELF messages