logInfo static method

void logInfo(
  1. String msg, {
  2. bool? isLog,
  3. bool? execFinalFunc,
  4. String? printOnceIfContains,
  5. int debounceMs = 0,
  6. String? debounceKey,
  7. String? tag,
})

Info - Blue text for informational messages @parammsg: The message string to be logged @paramisLog: If set to true, logs regardless of the static enable flag @paramexecFinalFunc: If true, executes the custom final function exeFinalFunc @paramprintOnceIfContains: If provided, only prints once when message contains this keyword @paramdebounceMs: Debounce time interval in milliseconds, logs within this interval will be discarded @paramdebounceKey: Custom key for debounce identification (if not provided, uses msg|devLevel|name as fallback) @paramtag: Tag for show and filtering; displayed in log output, and when isFilterByTags is true, only logs with tags matching tags are displayed

Implementation

static void logInfo(String msg,
    {bool? isLog,
    bool? execFinalFunc,
    String? printOnceIfContains,
    int debounceMs = 0,
    String? debounceKey,
    String? tag}) {
  // Performance optimization: Get file location and tag in a single stack trace call
  final stackInfo = _getStackTraceInfo();
  final String fileInfo = stackInfo.fileLocation;
  final effectiveTag = tag ?? stackInfo.tag;
  DevColorizedLog.logCustom(
    msg,
    devLevel: DevLevel.info,
    enable: Dev.enable,
    colorInt: execFinalFunc != null && execFinalFunc
        ? _exeColorMap[DevLevel.info]!
        : _logColorMap[DevLevel.info]!,
    isLog: isLog,
    fileInfo: fileInfo,
    name: DevLevel.info.alias, // Use enum alias for display name
    execFinalFunc: execFinalFunc,
    printOnceIfContains: printOnceIfContains,
    debounceMs: debounceMs,
    debounceKey: debounceKey,
    tag: effectiveTag,
  );
}