WSErrorLog class

Constructors

WSErrorLog(String? message, {required String type, required String url, required String path, required Object? body, Object? exception, StackTrace? stackTrace, ISpectWSInterceptorSettings settings = const ISpectWSInterceptorSettings()})

Properties

additionalData Map<String, dynamic>?
Additional metadata associated with the log entry.
finalinherited
body Object?
final
error Error?
Any error associated with the log entry.
finalinherited
errorText String?
Returns the error as a string if available, otherwise an empty string.
no setterinherited
exception Object?
Any exception associated with the log entry.
finalinherited
exceptionText String?
Returns the exception as a string if available, otherwise an empty string.
no setterinherited
formattedTime String
Returns the formatted timestamp of the log entry.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
Returns a formatted log header including the title or key and timestamp.
no setterinherited
isError bool
no setterinherited
key String?
A unique identifier for the log entry.
finalinherited
logLevel → LogLevel?
The severity level of the log entry.
finalinherited
message String?
The main log message.
finalinherited
messageText String
Returns the log message as a string, or an empty string if null.
no setterinherited
path String
final
pen → AnsiPen?
ANSI color styling for the log message.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings ISpectWSInterceptorSettings
final
stackTrace StackTrace?
The stack trace associated with the log entry.
finalinherited
stackTraceText String
Returns the formatted stack trace if available, otherwise an empty string.
no setterinherited
textMessage String
Returns the full message, including the stack trace if available.
no setter
time DateTime
Returns the timestamp of the log.
no setterinherited
title String?
An optional title for categorizing the log.
finalinherited
type String
final
url String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

getKey → const String