LogEntry constructor

LogEntry({
  1. String? host,
  2. String? level,
  3. Timestamp? time,
  4. String? loggerName,
  5. String? message,
  6. Struct? caller,
  7. String? stack,
  8. Iterable<Struct>? fields,
})

Implementation

factory LogEntry({
  $core.String? host,
  $core.String? level,
  $44.Timestamp? time,
  $core.String? loggerName,
  $core.String? message,
  $43.Struct? caller,
  $core.String? stack,
  $core.Iterable<$43.Struct>? fields,
}) {
  final $result = create();
  if (host != null) {
    $result.host = host;
  }
  if (level != null) {
    $result.level = level;
  }
  if (time != null) {
    $result.time = time;
  }
  if (loggerName != null) {
    $result.loggerName = loggerName;
  }
  if (message != null) {
    $result.message = message;
  }
  if (caller != null) {
    $result.caller = caller;
  }
  if (stack != null) {
    $result.stack = stack;
  }
  if (fields != null) {
    $result.fields.addAll(fields);
  }
  return $result;
}