public static String getLevelName(int logLevel) {
    String levelName;
    switch (logLevel) {
      case VERBOSE:
        levelName = "VERBOSE";
        break;
      case DEBUG:
        levelName = "DEBUG";
        break;
      case INFO:
        levelName = "INFO";
        break;
      case WARN:
        levelName = "WARN";
        break;
      case ERROR:
        levelName = "ERROR";
        break;
      default:
        if (logLevel < VERBOSE) {
          levelName = "VERBOSE-" + (VERBOSE - logLevel);
        } else {
          levelName = "ERROR+" + (logLevel - ERROR);
        }
        break;
    }
    return levelName;
  }
public static String getLevelName ( int logLevel ) { String levelName ; switch ( logLevel ) { case VERBOSE : levelName = "VERBOSE" ; break ; case DEBUG : levelName = "DEBUG" ; break ; case INFO : levelName = "INFO" ; break ; case WARN : levelName = "WARN" ; break ; case ERROR : levelName = "ERROR" ; break ; default : if ( logLevel < VERBOSE ) { levelName = "VERBOSE-" + ( VERBOSE - logLevel ) ; } else { levelName = "ERROR+" + ( logLevel - ERROR ) ; } break ; } return levelName ; }
Get a name representing the specified log level.
<p>
The returned name may be<br>
Level less than {@link LogLevel#VERBOSE}: "VERBOSE-N", N means levels below
{@link LogLevel#VERBOSE}<br>
{@link LogLevel#VERBOSE}: "VERBOSE"<br>
{@link LogLevel#DEBUG}: "DEBUG"<br>
{@link LogLevel#INFO}: "INFO"<br>
{@link LogLevel#WARN}: "WARN"<br>
{@link LogLevel#ERROR}: "ERROR"<br>
Level greater than {@link LogLevel#ERROR}: "ERROR+N", N means levels above
{@link LogLevel#ERROR}

@param logLevel the log level to get name for
@return the name