lib/log.js
function grunt(gruntInst, verbose, patch) {
		var mw = (patch || core.base());
		mw.enabled = true;
		if (verbose) {
			mw.writeln = function (line) {
				if (mw.enabled) {
					gruntInst.verbose.writeln(line);
				}
			};
		}
		else {
			mw.writeln = function (line) {
				if (mw.enabled) {
					gruntInst.log.writeln(line);
				}
			};
		}
		if (!patch) {
			mw.toString = function () {
				return '<miniwrite-grunt>';
			};
		}
		return mw;
	}
function grunt(gruntInst, verbose, patch) {
		var mw = (patch || core.base());
		mw.enabled = true;
		if (verbose) {
			mw.writeln = function (line) {
				if (mw.enabled) {
					gruntInst.verbose.writeln(line);
				}
			};
		}
		else {
			mw.writeln = function (line) {
				if (mw.enabled) {
					gruntInst.log.writeln(line);
				}
			};
		}
		if (!patch) {
			mw.toString = function () {
				return '<miniwrite-grunt>';
			};
		}
		return mw;
	}
function grunt ( gruntInst , verbose , patch ) { var mw = ( patch || core . base ( ) ) ; mw . enabled = true ; if ( verbose ) { mw . writeln = function ( line ) { if ( mw . enabled ) { gruntInst . verbose . writeln ( line ) ; } } ; } else { mw . writeln = function ( line ) { if ( mw . enabled ) { gruntInst . log . writeln ( line ) ; } } ; } if ( ! patch ) { mw . toString = function ( ) { return '<miniwrite-grunt>' ; } ; } return mw ; }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - grunt lazy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - grunt lazy