call method

List<int> call(
  1. Record record
)

Implementation

List<int> call(Record record) {
  final dict = Map.fromEntries([
    MapEntry('level', formatLevel(record.level)),
    MapEntry('message', record.message),
    MapEntry('name', record.name),
    MapEntry('timestamp', formatTimestamp(record.timestamp)),
    ...?_formatFields(record.fields),
  ]);

  return _codec.encode(dict);
}