levelToString static method

String levelToString(
  1. int level
)

Returns log level string from int

Implementation

static String levelToString(int level) {
  switch (level) {
    case Level.avLogTrace:
      return "TRACE";
    case Level.avLogDebug:
      return "DEBUG";
    case Level.avLogVerbose:
      return "VERBOSE";
    case Level.avLogInfo:
      return "INFO";
    case Level.avLogWarning:
      return "WARNING";
    case Level.avLogError:
      return "ERROR";
    case Level.avLogFatal:
      return "FATAL";
    case Level.avLogPanic:
      return "PANIC";
    case Level.avLogStderr:
      return "STDERR";
    case Level.avLogQuiet:
    default:
      return "";
  }
}