debugLog function

void debugLog(
  1. String message
)

Standard SDK diagnostics. With OneCxiLogging.verbose false, only problems and a few milestones are printed (plus anything matching _showsInQuietMode).

Prefer this over raw print in the plugin.

Implementation

void debugLog(String message) {
  if (!kDebugMode) return;
  if (OneCxiLogging.verbose || _showsInQuietMode(message)) {
    debugPrint(message);
  }
}