coloredName property
String
get
coloredName
Returns the formatted name of the log level for the DarwinDefaultLogger.
Implementation
String get coloredName {
if (value <= Level.FINEST.value) {
return "TRACE ".cyan;
} else if (value <= Level.FINER.value) {
return "DEBUG ".blue;
} else if (value <= Level.FINE.value) {
return "VERBOSE ".magenta;
} else if (value <= Level.CONFIG.value) {
return "CONFIG ".green;
} else if (value <= Level.INFO.value) {
return "INFO ".whiteBright;
} else if (value <= Level.WARNING.value) {
return "WARNING ".yellow;
} else if (value <= Level.SEVERE.value) {
return "SEVERE ".red;
}
return "CRITICAL".red.bold;
}