fromValue static method

LogLevel fromValue(
  1. int v
)

Implementation

static LogLevel fromValue(int v) {
  switch (v) {
    case 0:
      return LogLevel.trace;
    case 1:
      return LogLevel.debug;
    case 2:
      return LogLevel.info;
    case 3:
      return LogLevel.warn;
    case 4:
      return LogLevel.error;
    default:
      return LogLevel.info;
  }
}