- addLabel
Adds a label to the log entry's labels. Labels are user-defined (key, value)
data that provides addi
- build
Creates a LogEntry object for this builder.
- setSeverity
Sets the severity of the log entry. If not set, Severity#DEFAULT is used.
- setLabels
Sets an optional set of user-defined (key, value) data that provides additional
information about th
- setLogName
Sets the name of the log to which this log entry belongs. The log name must be
less than 512 charact
- setResource
Sets the monitored resource associated with this log entry. Example: a log entry
that reports a data
- setSpanId
Sets the ID of the trace span associated with the log entry, if any.
- setTimestamp
Sets the time at which the event described by the log entry occurred, in
milliseconds. If omitted, t
- setTrace
Sets the resource name of the trace associated with the log entry, if any. If it
contains a relative
- setHttpRequest
Sets information about the HTTP request associated with this log entry, if
applicable.
- setTraceSampled
Sets the sampling decision of the trace span associated with the log entry.
- setInsertId
Sets a unique ID for the log entry. If you provide this field, the Logging
service considers other l