toLogDriver method

LogDriver toLogDriver()

Implementation

LogDriver toLogDriver() {
  switch (this) {
    case 'json-file':
      return LogDriver.jsonFile;
    case 'syslog':
      return LogDriver.syslog;
    case 'journald':
      return LogDriver.journald;
    case 'gelf':
      return LogDriver.gelf;
    case 'fluentd':
      return LogDriver.fluentd;
    case 'awslogs':
      return LogDriver.awslogs;
    case 'splunk':
      return LogDriver.splunk;
    case 'awsfirelens':
      return LogDriver.awsfirelens;
  }
  throw Exception('$this is not known in enum LogDriver');
}