log static method

void log(
  1. String message, {
  2. String prefix = 'ℹ️',
  3. String color = _cyan,
})

Generic logger. You can always call Logger.log(...) if you need a custom color.

Implementation

static void log(
    String message, {
      String prefix = 'ℹ️',
      String color  = _cyan,
    }) {
  // The timestamp has been removed.
  stdout.writeln('$color$prefix $message$_reset');
}