lib/syslog.js
function (config) { // ctor
	var 
	me = this;
	config =  config || {};
	
	this.directory = config.directory;
	this.output = config.output || process.stdout;
	this.filesMaxSize = config.filesMaxSize ||  1024 * 1024 * 1024 * 4 // 4 Go
	
	this.writer = syslogwriter.create({
			directory: this.directory,
			filesMaxSize: this.filesMaxSize
	});
	this.writer.on('error', function(exception) {
			me.emit('error', exception);
	});
	
	
	Syslog.call(this, config);
}
function (config) { // ctor
	var 
	me = this;
	config =  config || {};
	
	this.directory = config.directory;
	this.output = config.output || process.stdout;
	this.filesMaxSize = config.filesMaxSize ||  1024 * 1024 * 1024 * 4 // 4 Go
	
	this.writer = syslogwriter.create({
			directory: this.directory,
			filesMaxSize: this.filesMaxSize
	});
	this.writer.on('error', function(exception) {
			me.emit('error', exception);
	});
	
	
	Syslog.call(this, config);
}
function ( config ) { // ctor var me = this ; config = config || { } ; this . directory = config . directory ; this . output = config . output || process . stdout ; this . filesMaxSize = config . filesMaxSize || 1024 * 1024 * 1024 * 4 // 4 Go this . writer = syslogwriter . create ( { directory : this . directory , filesMaxSize : this . filesMaxSize } ) ; this . writer . on ( 'error' , function ( exception ) { me . emit ( 'error' , exception ) ; } ) ; Syslog . call ( this , config ) ; }
Read NETASQ syslog and put them in files
@public
@class
@param config.directory: {directory}
@param config.output: {Writable Stream} // default to process.stdout
@param config.filesMaxSize: {number} as Bytes // default 4GB
@param Syslog.config {object}
@inherits Syslog
Read NETASQ syslog and put them in files