The sum $\sum_{i=1}^{k} i$ is equal to $\frac{k(k+1)}{2}$, which is $\Theta(k^2)$. Here, $k = \lfloor \log n \rfloor$, so the sum is $\Theta((\log n)^2)$. Since $\Theta((\log n)^2)$ is the same as $O((\log n)^2)$, the claim is true. Note that $\log(n)^2$ is often written as $\log^2 n$.