I am asked to show that
$$\displaystyle \int_{0}^{\infty} \frac{\ln(x)}{(x^2-1)} = \frac{\pi^2}{4}.$$
So I think I'm supposed to use residues to solve this integral and integrate around a contour on the real line. The thing is that I don't know how to choose this contour since the poles will lie on the path and I would also have to bent around zero since $\ln(x)$ has a non essential singularity there. I tried to do this with the methods that I've learned but I got as an answer $-\pi^2$ which is wrong. Any help on how to proceed is appreciated.

Hint. One may observe that $$ \begin{align} \int_0^\infty \frac{\ln x}{x^2-1}\:dx&=\int_0^1 \frac{\ln x}{x^2-1}\:dx+\int_1^\infty \frac{\ln x}{x^2-1}\:dx \\&=-\int_0^1 \frac{\ln x}{1-x^2}\:dx+\int_1^\infty \frac{\ln \frac1x}{1-\large\frac1{x^2}}\left(-\frac{dx}{x^2}\right) \\&=-\int_0^1 \frac{\ln x}{1-x^2}\:dx-\int_0^1 \frac{\ln u}{1-u^2}\:du \\&=-2\int_0^1 \frac{\ln x}{1-x^2}\:dx \\&=-2\int_0^1 \sum_{n=0}^\infty x^{2n}\ln x\:dx \\&=-2\sum_{n=0}^\infty \int_0^1 x^{2n}\ln x\:dx \\&=2\sum_{n=0}^\infty \frac1{(2n+1)^2} \\&=2\cdot \frac34\sum_{n=1}^\infty \frac1{n^2} \\&=\frac{\pi^2}4. \end{align} $$