To evaluate the integral $I = \int_0^\infty \frac{\tan^{-1} (\ln x)}{1+x^2} dx$, I used a similar method to the one outlined in this post, where by using the substitution $u=\frac{1}{x}$ I found $I=-I$ and hence $I=0$.
It seems the only properties of $\tan^{-1} x$ used is that it is an odd function. However, according to WolframAlpha $\int_0^\infty \frac{f(\ln x)}{1+x^2} dx = 0$ for $f(x) = x, x^3, \tan^{-1} x, \tan x, \sin x, \sin^{-1} x, \sqrt[3] x$, and $\frac{1}{\sqrt[3] x}$ but not for $f(x) = \frac{1}{x}, \frac{1}{x^3}$ or $\sinh x$ as the integral does not converge, and WolframAlpha does not load an answer for $f(x) = \cot x$. Therefore, there must be some other condition limiting what odd functions $f$ can be chosen.
I suspect this condition may be related to whether the function is defined at $0$ or whether $\lim_{x \to \infty} f(x)$ exists, though there are counterexamples to both conditions individually. Any help is appreciated.