log method

void log(
  1. Level level,
  2. String method, [
  3. String msg()?
])

Logs at RichEdit logging.Logger.

Implementation

void log(logging.Level level, String method, [String Function()? msg]) =>
    _log.log(level, () {
      if (msg != null) {
        var msgStr = msg();
        return '[hwnd: $hwndIfCreated] $method> $msgStr';
      } else {
        return '[hwnd: $hwndIfCreated] $method()';
      }
    });