PRIMER:
In THIS ANSWER, I showed using only the limit definition of the exponential function along with Bernoulli's Inequality that the logarithm function satisfies the inequalities
$$\frac{x-1}{x}\le \log(x)\le x-1 \tag 1$$
for $x>0$.
Note from $(1)$, that we have for $x>0$, $x\ne1$
$$\frac{x}{x-1} \ge \frac{1}{\log(x)}\ge \frac{1}{x-1}$$
Therefore, the singularity at $x=1$ renders the integral divergent.
However, the Cauchy Principal Value
$$\text{PV}\int_0^2 \frac{1}{\log(x)}\,dx=\lim_{\epsilon \to 0^+}\left(\int_0^{1-\epsilon}\frac{1}{\log(x)}\,dx+\int_{1+\epsilon}^2 \frac{1}{\log(x)}\,dx\right)$$
does converge.