logDebug static method

void logDebug(
  1. String msg, {
  2. bool? isLog,
  3. int? colorInt,
  4. String? fileLocation,
  5. DateTime? time,
  6. int? sequenceNumber,
  7. String? name,
  8. Zone? zone,
  9. Object? error,
  10. StackTrace? stackTrace,
  11. bool? execFinalFunc,
  12. String? printOnceIfContains,
  13. int debounceMs = 0,
  14. String? debounceKey,
  15. String? tag,
})

Alias for log method - logs a debug/normal level message This is the recommended method name. The log method is deprecated. @parammsg: The message string to be logged @paramisLog: If set to true, logs regardless of the static enable flag @paramcolorInt: ANSI color code (0 to 107) for text color customization @paramfileLocation: Custom file location string; if null, auto-detects from stack trace @paramtime: Custom timestamp for the log; if null, uses current time @paramsequenceNumber: Sequence number for log ordering @paramname: Custom name/tag for the log entry; if null, uses the level name @paramzone: Dart Zone where the log originates from @paramerror: Associated error object to be logged alongside the message @paramstackTrace: Stack trace information for debugging @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 logDebug(
  String msg, {
  bool? isLog,
  int? colorInt,
  String? fileLocation,
  DateTime? time,
  int? sequenceNumber,
  String? name,
  Zone? zone,
  Object? error,
  StackTrace? stackTrace,
  bool? execFinalFunc,
  String? printOnceIfContains,
  int debounceMs = 0,
  String? debounceKey,
  String? tag,
}) {
  log(
    msg,
    level: DevLevel.normal,
    isLog: isLog,
    colorInt: colorInt,
    fileLocation: fileLocation,
    time: time,
    sequenceNumber: sequenceNumber,
    name: name,
    zone: zone,
    error: error,
    stackTrace: stackTrace,
    execFinalFunc: execFinalFunc,
    printOnceIfContains: printOnceIfContains,
    debounceMs: debounceMs,
    debounceKey: debounceKey,
    tag: tag,
  );
}