addCustomField method

dynamic addCustomField(
  1. CustomField customField
)

Add a custom field to a log line

Implementation

addCustomField(CustomField customField) {
  if (meta == null) this.meta = Map();
  meta!.putIfAbsent(customField.name, () => customField.value);
}