logToConsole function
void
logToConsole(
- LogRecord message
Implementation
void logToConsole(LogRecord message) {
LogMethod method;
if (message.level >= Level.SEVERE) {
method = _error;
} else if (message.level >= Level.WARNING) {
method = _warn;
} else if (message.level >= Level.INFO) {
method = _info;
} else {
method = _debug;
}
method("$message");
if (message.stackTrace != null) {
method(message.stackTrace);
}
}