Let $\alpha \in (-1,0)$ and define $$f(z)= \frac{\log{(z-\alpha)}}{z}-\frac{\log z}z$$ where the logarithms take their principal values, i.e. the arguments of $z$ and $z-\alpha$ are between $-\pi$ and $\pi$. Evaluate $$\oint_{|z|=2}f(z) \, \mathrm dz$$
I get $0$ but I am not sure if I have calculated the Laurent series correctly. I said $$f(z) = \frac {1}{z}\log\left(1-\frac {\alpha} z\right)=-\frac{\alpha}{z^2} - \frac{\alpha^2}{z^3} + \cdots$$ which would imply the integral is $0$. Laurent series is valid as $f$ is analytic on an annulus $1 \le |z| \le 3$ taking the branch cut from $\alpha$ to $0$, and the series is convergent as $|\alpha/z| < 1$. I am just a bit concerned about the use of the identity $\log z - \log \omega = \log(z/\omega)$ as this is only true modulo $2 \pi i$, but I am pretty sure (from a rough sketch) that there is no added constant there. Other solutions would also be appreciated.
Your solution is correct. To justify it, it is sufficient to justify the formula $$\log(1-\alpha)-\log z=\log(1-\alpha/z)$$ for $|z|=1$, and where all branches are principal. The right hand side is analytic in the region $|z|>|\alpha|$ which contains the unit circle. The summands in the left hand side are analytic on the unit circle except the point $-1$, where they are discontinuous. Also LHS coincides with the RHS when $\arg z$ is sufficiently small. Thus the equality follows from uniqueness property of analytic functions.
The discontinuities at $-1$ of the summands at in the LHS cancel because they have opposite jumps.