logs method

Future<List<LogLine>> logs(
  1. String id, {
  2. int tail = 200,
})

The tail of what a node has reported.

Implementation

Future<List<LogLine>> logs(String id, {int tail = 200}) async => _list(
  await get(
    _query('/nodes/$id/logs', {
      'tail': ['$tail'],
    }),
  ),
  LogLine.fromJson,
);