fromString static method

LogLevel fromString(
  1. String value
)

Implementation

static LogLevel fromString(String value) {
  switch (value.toUpperCase()) {
    case 'Error':
      return LogLevel.errorOnly;
    case 'INFO':
      return LogLevel.normal;
    case 'Detail':
      return LogLevel.verbose;
    default:
      return LogLevel.unknown;
  }
}