NetworkLogEntry class
- Inheritance
- Available extensions
Constructors
-
NetworkLogEntry.new({required String id, required DateTime timestamp, required String message, required LogLevel level, required String method, required String url, int? statusCode, Map<
String, String> ? requestHeaders, Map<String, String> ? responseHeaders, dynamic requestBody, dynamic responseBody, int? requestSize, int? responseSize, Duration? duration, String? category = 'Network', String? tag, Map<String, dynamic> ? metadata, Object? error, String? stackTrace, String? userId, String? sessionId}) -
const
Properties
- category → String?
-
finalinherited
- duration → Duration?
-
final
- error → Object?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
- isError → bool
-
no setter
- isRequest → bool
-
no setter
- isResponse → bool
-
no setter
- isSuccess → bool
-
no setter
- level → LogLevel
-
finalinherited
- message → String
-
finalinherited
-
metadata
→ Map<
String, dynamic> ? -
finalinherited
- method → String
-
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- requestBody → dynamic
-
final
-
requestHeaders
→ Map<
String, String> ? -
final
- requestSize → int?
-
final
- responseBody → dynamic
-
final
-
responseHeaders
→ Map<
String, String> ? -
final
- responseSize → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
finalinherited
- stackTrace → String?
-
finalinherited
- statusCode → int?
-
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - tag → String?
-
finalinherited
- timestamp → DateTime
-
finalinherited
- url → String
-
final
- userId → String?
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toModel(
) → LogEntryModel -
Available on LogEntry, provided by the LogEntryExtensions extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited