ISpectLogError class base

Log entry produced when a Dart Error is captured by the logger.

Serialized with key: ISpectLogType.error.key and LogLevel.error. The original Error is stored on ISpectLogData.error and the optional stack trace on ISpectLogData.stackTrace.

Inheritance
Available extensions

Constructors

ISpectLogError(Error error, {Object? message, StackTrace? stackTrace, DateTime? time, LogLevel? logLevel, AnsiPen? pen, String? key, Map<String, dynamic>? additionalData, String? id, DiagnosticCaptureMode captureMode = DiagnosticCaptureMode.balanced, DiagnosticResourceLimits resourceLimits = DiagnosticResourceLimits.balanced, @internal DiagnosticMasker? maskAdditionalData})
Creates an error log entry wrapping error with an optional human-readable message and stackTrace.

Properties

additionalData → Map<String, dynamic>?
no setterinherited
authProvider → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
blocType → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
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
dbArgs → List<Object?>?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
dbStatement → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
dbStatementDigest → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
error → Error?
no setterinherited
errorText → String?
no setterinherited
eventType → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
exception → Object?
no setterinherited
exceptionText → String?
no setterinherited
formattedTime → String
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
Single-line header for console output.
no setterinherited
httpHeaders → Map<String, dynamic>?

Available on ISpectLogData, provided by the ISpectLogDataX extension

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
httpStatusCode → int?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
id → String
no setterinherited
isAnalytics → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isAuth → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isDb → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isError → bool
no setterinherited
isGraphql → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isGrpc → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isHttpLog → bool

Available on ISpectLogData, provided by the ISpectDataX extension

no setter
isNavigation → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isNetwork → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isPayment → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isPush → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isRouteLog → bool

Available on ISpectLogData, provided by the ISpectDataX extension

no setter
isSse → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isState → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isStorage → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
isWs → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
key → String?
no setterinherited
logLevel → LogLevel?
no setterinherited
lowerMessage → String?
Cached lowercase message for efficient repeated case-insensitive search.
no setterinherited
message → String?
no setterinherited
messageText → String
no setterinherited
paymentAmount → double?

Available on ISpectLogData, provided by the ISpectLogDataX extension

NB: num check - JSON may return int (100) instead of double (100.0).
no setter
paymentCurrency → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
pen → AnsiPen?
no setterinherited
pushTitle → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
pushTopic → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
requestId → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
no setterinherited
stackTraceLogText → String?

Available on ISpectLogData, provided by the ISpectDataX extension

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

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
storageSizeBytes → int?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
textMessage → String
Full message including error/exception and stack trace.
no setterinherited
time → DateTime
no setterinherited
traceCategory → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceCorrelationId → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceDurationMs → int?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceMeta → Map<String, dynamic>?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceOperation → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceSlow → bool?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceSource → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceSuccess → bool?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceTarget → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

no setter
traceTransactionId → String?

Available on ISpectLogData, provided by the ISpectLogDataX extension

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.
hasCategory(String categoryId) → bool

Available on ISpectLogData, provided by the ISpectLogDataX extension

Check any custom category: log.hasCategory('my-service')
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyObserver(ISpectObserver observer) → void
Dispatches to the appropriate ISpectObserver callback. Subclasses override to route to onException etc.
override
toExportJson({required bool redactionActive, bool truncated = false}) → Map<String, dynamic>

Available on ISpectLogData, provided by the ISpectLogDataSerialization extension

Creates a bounded, non-executing snapshot for an outbound export.
toExportMessageText({Set<String>? redactKeys, RedactionService? redactionService, bool enableRedaction = true, int? maxOutputBytes}) → String

Available on ISpectLogData, provided by the ISpectLogDataSerialization extension

Message-oriented text for clipboard and other outbound UI actions.
toJson({bool truncated = false, bool preserveTypes = false}) → Map<String, dynamic>

Available on ISpectLogData, provided by the ISpectLogDataSerialization extension

Converts the log data into a JSON representation.
toMarkdown({Set<String>? redactKeys, RedactionService? redactionService, bool enableRedaction = true, int? maxOutputBytes}) → String

Available on ISpectLogData, provided by the ISpectLogDataSerialization extension

Markdown - for issue trackers, documentation.
toString() → String
A string representation of this object.
inherited
toText({Set<String>? redactKeys, RedactionService? redactionService, bool enableRedaction = true, int? maxOutputBytes}) → String

Available on ISpectLogData, provided by the ISpectLogDataSerialization extension

Plain text - for sharing, copying, human reading.

Operators

operator ==(Object other) → bool
The equality operator.
inherited