echo method

void echo(
  1. LogInfo info
)

Internal method used to echo back to console.

If you want change echo function, override this method.

Implementation

void echo(LogInfo info) {
  var kind = "";

  switch (info.level) {
    case LogLevel.verbose:
      kind = "V";
      break;
    case LogLevel.debug:
      kind = "D";
      break;
    case LogLevel.info:
      kind = "I";
      break;
    case LogLevel.warning:
      kind = "W";
      break;
    case LogLevel.error:
      kind = "E";
      break;
    case LogLevel.fatal:
      kind = "F";
      break;
    default:
      break;
  }
  debugPrint("[${info.tag}:$kind] ${info.message}");
}