toLoggingLevel method

LoggingLevel toLoggingLevel()

Implementation

LoggingLevel toLoggingLevel() {
  switch (this) {
    case 'ERROR':
      return LoggingLevel.error;
    case 'INFO':
      return LoggingLevel.info;
    case 'OFF':
      return LoggingLevel.off;
  }
  throw Exception('$this is not known in enum LoggingLevel');
}