w static method

void w(
  1. String msg, [
  2. Exception? error
])

Warn (for expected errors).

Implementation

static void w(String msg, [Exception? error]) {
  _forAllStrategies(
    (strategy) => strategy.log(msg, priorityLogWarn, error),
  );
}