LogEntry class
An individual entry in a log.
Constructors
-
LogEntry({List<
LogErrorGroup> ? errorGroups, HttpRequest? httpRequest, String? insertId, Map<String, Object?> ? jsonPayload, Map<String, String> ? labels, String? logName, MonitoredResourceMetadata? metadata, LogEntryOperation? operation, Map<String, Object?> ? protoPayload, String? receiveTimestamp, MonitoredResource? resource, String? severity, LogEntrySourceLocation? sourceLocation, String? spanId, LogSplit? split, String? textPayload, String? timestamp, String? trace, bool? traceSampled}) - LogEntry.fromJson(Map json_)
Properties
-
errorGroups
↔ List<
LogErrorGroup> ? -
The Error Reporting (https://cloud.google.com/error-reporting) error
groups associated with this LogEntry.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpRequest ↔ HttpRequest?
-
Information about the HTTP request associated with this log entry, if
applicable.
getter/setter pair
- insertId ↔ String?
-
A unique identifier for the log entry.
getter/setter pair
-
jsonPayload
↔ Map<
String, Object?> ? -
The log entry payload, represented as a structure that is expressed as a
JSON object.
getter/setter pair
-
labels
↔ Map<
String, String> ? -
A map of key, value pairs that provides additional information about the
log entry.
getter/setter pair
- logName ↔ String?
-
The resource name of the log to which this log entry belongs:
"projects/[PROJECT_ID]/logs/[LOG_ID]"
"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
"folders/[FOLDER_ID]/logs/[LOG_ID]" A project number may be used in
place of PROJECT_ID.
getter/setter pair
- metadata ↔ MonitoredResourceMetadata?
-
This field is not used by Logging.
getter/setter pair
- operation ↔ LogEntryOperation?
-
Information about an operation associated with the log entry, if
applicable.
getter/setter pair
-
protoPayload
↔ Map<
String, Object?> ? -
The log entry payload, represented as a protocol buffer.
getter/setter pair
- receiveTimestamp ↔ String?
-
The time the log entry was received by Logging.
getter/setter pair
- resource ↔ MonitoredResource?
-
The monitored resource that produced this log entry.Example: a log entry
that reports a database error would be associated with the monitored
resource designating the particular database that reported the error.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity ↔ String?
-
The severity of the log entry.
getter/setter pair
- sourceLocation ↔ LogEntrySourceLocation?
-
Source code location information associated with the log entry, if any.
getter/setter pair
- spanId ↔ String?
-
The ID of the Cloud Trace (https://cloud.google.com/trace) span associated
with the current operation in which the log is being written.
getter/setter pair
- split ↔ LogSplit?
-
Information indicating this LogEntry is part of a sequence of multiple log
entries split from a single LogEntry.
getter/setter pair
- textPayload ↔ String?
-
The log entry payload, represented as a Unicode string (UTF-8).
getter/setter pair
- timestamp ↔ String?
-
The time the event described by the log entry occurred.
getter/setter pair
- trace ↔ String?
-
The REST resource name of the trace being written to Cloud Trace
(https://cloud.google.com/trace) in association with this log entry.
getter/setter pair
- traceSampled ↔ bool?
-
The sampling decision of the span associated with the log entry at the
time the log entry was created.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited