LogRecord constructor

LogRecord({
  1. Int64? timeUnixNano,
  2. SeverityNumber? severityNumber,
  3. String? severityText,
  4. AnyValue? body,
  5. Iterable<KeyValue>? attributes,
  6. int? droppedAttributesCount,
  7. int? flags,
  8. List<int>? traceId,
  9. List<int>? spanId,
  10. Int64? observedTimeUnixNano,
})

Implementation

factory LogRecord({
  $fixnum.Int64? timeUnixNano,
  SeverityNumber? severityNumber,
  $core.String? severityText,
  $1.AnyValue? body,
  $core.Iterable<$1.KeyValue>? attributes,
  $core.int? droppedAttributesCount,
  $core.int? flags,
  $core.List<$core.int>? traceId,
  $core.List<$core.int>? spanId,
  $fixnum.Int64? observedTimeUnixNano,
}) {
  final result = create();
  if (timeUnixNano != null) result.timeUnixNano = timeUnixNano;
  if (severityNumber != null) result.severityNumber = severityNumber;
  if (severityText != null) result.severityText = severityText;
  if (body != null) result.body = body;
  if (attributes != null) result.attributes.addAll(attributes);
  if (droppedAttributesCount != null)
    result.droppedAttributesCount = droppedAttributesCount;
  if (flags != null) result.flags = flags;
  if (traceId != null) result.traceId = traceId;
  if (spanId != null) result.spanId = spanId;
  if (observedTimeUnixNano != null)
    result.observedTimeUnixNano = observedTimeUnixNano;
  return result;
}