showLogs method

void showLogs({
  1. int limit = 0,
})

writes this containers docker logs to the console If limit is 0 (the default) all log lines a output. If limit is > 0 then only the last limit lines are output.

Implementation

void showLogs({int limit = 0}) {
  var limitFlag = '';
  if (limit != 0) {
    limitFlag = '-n $limit';
  }
  dockerRun('logs', '$limitFlag $containerid');
}