Assume $a>0$ and evaluate $$\int_0^{\infty}\frac{dx}{(x+a)((\ln x)^2+\pi^2)}.$$
My biggest issue when doing these problems is deciding which closed curve I should try, so if someone could point me in the right direction with at least that I would appreciate it!