logSimple static method

void logSimple(
  1. String tag,
  2. String message
)

Simple log for things that don't need the ASR buffer context attached.

Implementation

static void logSimple(String tag, String message) {
  final logLine = '[${_timestamp()}] [$tag] $message';
  if (kIsWeb) {
    // ignore: avoid_print
    print(logLine);
  } else {
    debugPrint(logLine);
  }
}