level property

String get level

Implementation

String get level {
  switch (this) {
    case LogLevel.verbose:
      return "VERBOSE";
    case LogLevel.debug:
      return "DEBUG";
    case LogLevel.info:
      return "INFO";
    case LogLevel.warn:
      return "WARN";
    case LogLevel.error:
      return "ERROR";
    case LogLevel.assertion:
      return "ASSERT";
    default:
      throw Exception("Unsupported LogLevel value: $this");
  }
}