call method

void call(
  1. LogRecord record
)

Implementation

void call(LogRecord record) {
  _createBody(record).then((body) {
    if (_records.isClosed) {
      throw StateError('InsightOpsLogger is also disposed');
    }
    _records.add(json.encode(body));
  });
}