LogRecord constructor
LogRecord({})
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;
}