This is a minor detail of a proof in 'Chaotic Billiards' by Chernov and Markarian which I foolishly decided to verify.
It's page 44 of the book, during the proof that lyapunov exponents exist almost everywhere in the collision space (Theroem 3.6) in case anyone is familiar. Though the integral problem stated is independent of any knowledge of this field.
I've tried integration by parts but I end up with:
$\int^{\frac{\pi}{2}}_{-\frac{\pi}{2}} \sin(\phi)\tan(\phi) \,d\phi$
which is non-convergent on the given interval. All help is appreciated!
quick edit: log is the natural logarithm
You can replace $\cos(x)$ inside the log with $\sqrt{1-\sin(x)^2}$, then use the properties of the logarithm to expand it into:
$$\dfrac{1}{2}\int (\log(1-\sin(x)) + \log(1+\sin(x)))\cos(x) dx$$
Now you can integrate the individual summands using $u$-substitution.