lib/writer.js
function SallyWriter(opts)
{
	this.sally = require('./sally');
	
	opts = opts || {};
	this.path = opts.path || 'sally.log';
	this.prefix = opts.prefix || '';
	this.digest = undefined;
	this.onLog = this.onLog.bind(this);
	this.onEpochStart = this.onEpochStart.bind(this);
	this.onEpochEnd = this.onEpochEnd.bind(this);
	this.onCycleStart = this.onCycleStart.bind(this);
	this.onCycleEnd = this.onCycleEnd.bind(this);
	this.sally
		.on('log', this.onLog)
		.on('epochStart', this.onEpochStart)
		.on('epochEnd', this.onEpochEnd)
		.on('cycleStart', this.onCycleStart)
		.on('cycleEnd', this.onCycleEnd)
		.configure(opts);
}
function SallyWriter(opts)
{
	this.sally = require('./sally');
	
	opts = opts || {};
	this.path = opts.path || 'sally.log';
	this.prefix = opts.prefix || '';
	this.digest = undefined;
	this.onLog = this.onLog.bind(this);
	this.onEpochStart = this.onEpochStart.bind(this);
	this.onEpochEnd = this.onEpochEnd.bind(this);
	this.onCycleStart = this.onCycleStart.bind(this);
	this.onCycleEnd = this.onCycleEnd.bind(this);
	this.sally
		.on('log', this.onLog)
		.on('epochStart', this.onEpochStart)
		.on('epochEnd', this.onEpochEnd)
		.on('cycleStart', this.onCycleStart)
		.on('cycleEnd', this.onCycleEnd)
		.configure(opts);
}
function SallyWriter ( opts ) { this . sally = require ( './sally' ) ; opts = opts || { } ; this . path = opts . path || 'sally.log' ; this . prefix = opts . prefix || '' ; this . digest = undefined ; this . onLog = this . onLog . bind ( this ) ; this . onEpochStart = this . onEpochStart . bind ( this ) ; this . onEpochEnd = this . onEpochEnd . bind ( this ) ; this . onCycleStart = this . onCycleStart . bind ( this ) ; this . onCycleEnd = this . onCycleEnd . bind ( this ) ; this . sally . on ( 'log' , this . onLog ) . on ( 'epochStart' , this . onEpochStart ) . on ( 'epochEnd' , this . onEpochEnd ) . on ( 'cycleStart' , this . onCycleStart ) . on ( 'cycleEnd' , this . onCycleEnd ) . configure ( opts ) ; }
AuditFile constructor.
AuditFile constructor .