NewRelicLogEvent.fromLogEvent constructor

NewRelicLogEvent.fromLogEvent(
  1. LogEvent event, {
  2. Map<String, dynamic>? attributes,
  3. String? entityName,
  4. String? entityType,
  5. String? host,
  6. String? environment,
  7. String? traceId,
  8. String? spanId,
})

Creates a NewRelicLogEvent from a base LogEvent

Implementation

factory NewRelicLogEvent.fromLogEvent(
  LogEvent event, {
  Map<String, dynamic>? attributes,
  String? entityName,
  String? entityType,
  String? host,
  String? environment,
  String? traceId,
  String? spanId,
}) {
  return NewRelicLogEvent(
    eventName: event.eventName,
    eventMessage: event.eventMessage,
    parameters: event.parameters,
    attributes: attributes,
    entityName: entityName,
    entityType: entityType,
    host: host,
    environment: environment,
    traceId: traceId,
    spanId: spanId,
  );
}