I have to prove that $$\int_{0}^{\infty} \frac{\ln(x)}{(x+a)^2+b^2}=\frac{\ln(\sqrt{a^2+b^2})}{b}\arctan(\frac{b}{a})$$ for $a,b \in \mathbb{R}$ using complex analysis.
I have to use the residue theorem and the Jordan's lemma. I know there is an answer here: Contour integral for finding $\int_0^\infty \frac{\ln x}{(x+a)^2+b^2} \, dx$
But in this answer don't use the form of Jordan's lemma, that is $\lim_{R \rightarrow\infty} \int_\gamma f(z)e^{i \lambda z}dz=0$ where $\lambda > 0$ and $\gamma$ is a family of circular arcs of radii $R$ and $Imz \geq a$.
I've tried using the function $$g(z)=\frac{Ln(z)}{(z+a)^2+b^2}$$ and I found that the poles are $-a+ib$ and $-a-ib$. But from here I don't know how to continue to know which branch of the logarithm I should eliminate.
I would appreciate if someone helps me