In hindsight, one can extract a general principle from this example. Let $f(x)$ be a say continuous function. Suppose also that
$$\frac{1}{x}f\left(\frac{1}{x}\right)=-xf(x)$$
for all relevant $x$. Then for any $b\ne 0$,
$$\int_{1/b}^b f(x)\,dx=0.\tag{$1$}$$
Under the same conditions, if the improper integral converges, we have
$$\int_0^\infty f(x)\,dx=0.$$
The proof of either result is the same as the proof by anon in the particular case $f(x)=\frac{\log x}{1+x^2}$. For $(1)$, break up the integral into two parts, $1/b$ to $1$ and $1$ to $b$. For the integral between $1/b$ and $1$, make the change of variable $u=1/x$.
Remark: If a trick or idea solves a concrete problem, one can reverse engineer and identify the problems for which essentially the same idea works. In this case, the reverse engineering does not seem to produce something of general interest. Instead, one should just draw the general lesson: Symmetry is your friend. Exploit it. (That rewording of Polya didn't come out sounding quite right.)