sendLogs method

void sendLogs(
  1. List<String> lines, {
  2. String source = 'agent',
})

Pushes a batch of log lines to the Hub (one-way, best-effort).

Implementation

void sendLogs(List<String> lines, {String source = 'agent'}) =>
    _runtime?.notify(
      Operations.logs,
      payload: LogBatch(
        nodeId: config.nodeId,
        source: source,
        lines: lines,
      ).toJson(),
    );