getColour method
Implementation
String getColour(MessageLevel level) {
switch (level) {
case MessageLevel.verbose:
case MessageLevel.debug:
return DEBUG_COLOR;
case MessageLevel.error:
return FAIL_COLOR;
case MessageLevel.warning:
return WARN_COLOR;
case MessageLevel.info:
default:
return NEUTRAL_COLOR;
}
}