Parser.js
function (filename) {
		var resume = filename === true; // should only ever be set by resume calls
		var fd = this._fd = resume ? this._fd : fs.openSync(filename, 'r');
		var buffer = new Buffer(4096);
		var bytesRead;
		var current = '';
		var remainder = resume ? this._remainder : '';

		while (!this._paused && (bytesRead = fs.readSync(fd, buffer, 0, buffer.length))) {
			current = buffer.toString('utf-8');
			if (current.length > bytesRead) {
				current = current.slice(0, bytesRead);
			}
			remainder = this._remainder = this._parseLines(remainder + current);
		}

		// The loop will end either when EOF is reached, or pause was called.
		// In the former case, close the file; in the latter case, leave it
		// open with the expectation that we'll pick up where we left off.
		if (!this._paused) {
			fs.closeSync(fd);
		}
	}
function (filename) {
		var resume = filename === true; // should only ever be set by resume calls
		var fd = this._fd = resume ? this._fd : fs.openSync(filename, 'r');
		var buffer = new Buffer(4096);
		var bytesRead;
		var current = '';
		var remainder = resume ? this._remainder : '';

		while (!this._paused && (bytesRead = fs.readSync(fd, buffer, 0, buffer.length))) {
			current = buffer.toString('utf-8');
			if (current.length > bytesRead) {
				current = current.slice(0, bytesRead);
			}
			remainder = this._remainder = this._parseLines(remainder + current);
		}

		// The loop will end either when EOF is reached, or pause was called.
		// In the former case, close the file; in the latter case, leave it
		// open with the expectation that we'll pick up where we left off.
		if (!this._paused) {
			fs.closeSync(fd);
		}
	}
function ( filename ) { var resume = filename === true ; // should only ever be set by resume calls var fd = this . _fd = resume ? this . _fd : fs . openSync ( filename , 'r' ) ; var buffer = new Buffer ( 4096 ) ; var bytesRead ; var current = '' ; var remainder = resume ? this . _remainder : '' ; while ( ! this . _paused && ( bytesRead = fs . readSync ( fd , buffer , 0 , buffer . length ) ) ) { current = buffer . toString ( 'utf-8' ) ; if ( current . length > bytesRead ) { current = current . slice ( 0 , bytesRead ) ; } remainder = this . _remainder = this . _parseLines ( remainder + current ) ; } // The loop will end either when EOF is reached, or pause was called. // In the former case, close the file; in the latter case, leave it // open with the expectation that we'll pick up where we left off. if ( ! this . _paused ) { fs . closeSync ( fd ) ; } }
Parses the given log file.

@param {string} filename File to parse
Parses the given log file .