getColorForLevel static method
Get color for log level
Implementation
static String getColorForLevel(String level) {
switch (level) {
case 'ERROR':
return red;
case 'WARN':
return yellow;
case 'INFO':
return blue;
case 'DEBUG':
return cyan;
default:
return reset;
}
}