bin/logger.js
function write(msg, color, prefix) {
	if (!prefix)
		prefix = clc.cyan('[conquer]');

	// Print each line of the message on its own line.
	var messages = msg.split('\n');
	for (var i = 0; i < messages.length; i++) {
		var message = messages[i].replace(/(\s?$)|(\n?$)/gm, '');
		if (message && message.length > 0)
			console.log(prefix, color ? color(message) : message);
	}
}
function write(msg, color, prefix) {
	if (!prefix)
		prefix = clc.cyan('[conquer]');

	// Print each line of the message on its own line.
	var messages = msg.split('\n');
	for (var i = 0; i < messages.length; i++) {
		var message = messages[i].replace(/(\s?$)|(\n?$)/gm, '');
		if (message && message.length > 0)
			console.log(prefix, color ? color(message) : message);
	}
}
function write ( msg , color , prefix ) { if ( ! prefix ) prefix = clc . cyan ( '[conquer]' ) ; // Print each line of the message on its own line. var messages = msg . split ( '\n' ) ; for ( var i = 0 ; i < messages . length ; i ++ ) { var message = messages [ i ] . replace ( / (\s?$)|(\n?$) / gm , '' ) ; if ( message && message . length > 0 ) console . log ( prefix , color ? color ( message ) : message ) ; } }
Writes the supplied message to the log.
@param {String} msg - the message.
@param {Function} [color] - the clc coloring function to use on each message.
@param {String} [prefix] - a message prefix. Defaults to '[conquer]'.
Writes the supplied message to the log .