ISpectDataX extension

Utility extensions on ISpectLogData: copy, formatting, cURL generation.

on

Properties

curlCommand → String?

Available on ISpectLogData, provided by the ISpectDataX extension

Generates a cURL command for HTTP logs, or null for non-HTTP entries.
no setter
httpLogText → String?

Available on ISpectLogData, provided by the ISpectDataX extension

Error/exception message with special handling for HTTP and Flutter errors.
no setter
isHttpLog → bool

Available on ISpectLogData, provided by the ISpectDataX extension

no setter
isRouteLog → bool

Available on ISpectLogData, provided by the ISpectDataX extension

no setter
stackTraceLogText → String?

Available on ISpectLogData, provided by the ISpectDataX extension

Stack trace text for log display. Returns null if unavailable.
no setter
typeText → String?

Available on ISpectLogData, provided by the ISpectDataX extension

Exception/error runtime type label, or null for non-error logs.
no setter

Methods

copy() → ISpectLogData

Available on ISpectLogData, provided by the ISpectDataX extension

Identity-preserving copy: equal to the original under ==.
copyWith({Object? message, LogLevel? logLevel, Object? exception, Error? error, StackTrace? stackTrace, DateTime? time, AnsiPen? pen, String? key, Map<String, dynamic>? additionalData, String? id, DiagnosticCaptureMode? captureMode, DiagnosticResourceLimits? resourceLimits}) → ISpectLogData

Available on ISpectLogData, provided by the ISpectDataX extension

Returns a copy with the given fields replaced.
curlCommandWith({RedactionService? redactor, bool enableRedaction = true}) → String?

Available on ISpectLogData, provided by the ISpectDataX extension

Like curlCommand, with an optional custom redactor.
generateText({int? maxOutputBytes}) → String

Available on ISpectLogData, provided by the ISpectDataX extension

Truncated summary for debugging/display.