public static String getMessageLogLevel(final int level, final String defLevel) {
        switch (level) {
            case (Constants.ERR_LEVEL):
                return Constants.MSG_ERR;
            case (Constants.DEBUG_LEVEL):
                return Constants.MSG_DEBUG;
            case (Constants.INFO_LEVEL):
                return Constants.MSG_INFO;
            case (Constants.VERBOSE_LEVEL):
                return Constants.MSG_VERBOSE;
            case (Constants.WARN_LEVEL):
                return Constants.MSG_WARN;
            default:
                return defLevel;
        }
    }
public static String getMessageLogLevel ( final int level , final String defLevel ) { switch ( level ) { case ( Constants . ERR_LEVEL ) : return Constants . MSG_ERR ; case ( Constants . DEBUG_LEVEL ) : return Constants . MSG_DEBUG ; case ( Constants . INFO_LEVEL ) : return Constants . MSG_INFO ; case ( Constants . VERBOSE_LEVEL ) : return Constants . MSG_VERBOSE ; case ( Constants . WARN_LEVEL ) : return Constants . MSG_WARN ; default : return defLevel ; } }
Get message loglevel string for the integer value

@param level    integer level
@param defLevel default string to return if integer doesn't match

@return loglevel string, or the default value