ISpectLogData class base
Core log entry model. All fields are immutable after construction.
Uses base modifier to prevent external implements while allowing
subclasses like ISpectLogError, ISpectLogException, and network log
types from interceptor packages.
- Available extensions
- Annotations
Constructors
-
ISpectLogData(Object? message, {DateTime? time, LogLevel? logLevel, Object? exception, Error? error, StackTrace? stackTrace, AnsiPen? pen, String? key, Map<
String, dynamic> ? additionalData, String? id, DiagnosticCaptureMode captureMode = DiagnosticCaptureMode.balanced, DiagnosticResourceLimits resourceLimits = DiagnosticResourceLimits.balanced, @internal DiagnosticMasker? maskAdditionalData})
Properties
-
additionalData
→ Map<
String, dynamic> ? -
no setter
- 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, ornullfor 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 setter
- errorText → String?
-
no setter
- eventType → String?
-
Available on ISpectLogData, provided by the ISpectLogDataX extension
no setter - exception → Object?
-
no setter
- exceptionText → String?
-
no setter
- formattedTime → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- header → String
-
Single-line header for console output.
no setter
-
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 setter
- 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 setter
- 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 -
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 setter
- logLevel → LogLevel?
-
no setter
- lowerMessage → String?
-
Cached lowercase message for efficient repeated case-insensitive search.
no setter
- message → String?
-
no setter
- messageText → String
-
no setter
- paymentAmount → double?
-
Available on ISpectLogData, provided by the ISpectLogDataX extension
NB:numcheck - 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 setter
- 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 setter
- stackTraceLogText → String?
-
Available on ISpectLogData, provided by the ISpectDataX extension
Stack trace text for log display. Returnsnullif unavailable.no setter - stackTraceText → String?
-
no setter
- 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 setter
- time → DateTime
-
no setter
- 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, ornullfor 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 customredactor. -
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
onExceptionetc. -
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
-
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.
override
-
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.
override