index.js
function log(msg, type) {
	switch (type) {
	case 'error':
		fancyLog(`${PLUGINNAME}: ${colors.red(`Error, ${msg}`)}`);
		break;

	case 'warn':
		fancyLog(`${PLUGINNAME}: ${colors.yellow(`Warning, ${msg}`)}`);
		break;

	case 'info':
		fancyLog(`${PLUGINNAME}: ${colors.green(`Info, ${msg}`)}`);
		break;

	default:
		fancyLog(`${PLUGINNAME}: ${colors.green(`Info, ${msg}`)}`);
		break;
	}

}
function log(msg, type) {
	switch (type) {
	case 'error':
		fancyLog(`${PLUGINNAME}: ${colors.red(`Error, ${msg}`)}`);
		break;

	case 'warn':
		fancyLog(`${PLUGINNAME}: ${colors.yellow(`Warning, ${msg}`)}`);
		break;

	case 'info':
		fancyLog(`${PLUGINNAME}: ${colors.green(`Info, ${msg}`)}`);
		break;

	default:
		fancyLog(`${PLUGINNAME}: ${colors.green(`Info, ${msg}`)}`);
		break;
	}

}
function log ( msg , type ) { switch ( type ) { case 'error' : fancyLog ( ` ${ PLUGINNAME } ${ colors . red ( ` ${ msg } ` ) } ` ) ; break ; case 'warn' : fancyLog ( ` ${ PLUGINNAME } ${ colors . yellow ( ` ${ msg } ` ) } ` ) ; break ; case 'info' : fancyLog ( ` ${ PLUGINNAME } ${ colors . green ( ` ${ msg } ` ) } ` ) ; break ; default : fancyLog ( ` ${ PLUGINNAME } ${ colors . green ( ` ${ msg } ` ) } ` ) ; break ; } }
Format log based on different types

@param  {String} msg
@param  {String} type
Format log based on different types