Let $\gamma_r(t) = 1+re^{it}$ for $0\leq t \leq \pi/4$. Calculate $\lim\limits_{r\rightarrow 0+} \int_{\gamma_r} \frac{\cos (\pi z)}{\log z}$ where $\log z$ is the principle branch of the logarithm.
I made a few calculations. $\frac{\cos(\pi z)}{\log z}$ is analytic on $\mathbb{C}$ except a simple pole at $z=1$ and the residue at $z=1$ is $-1$.
I tried to enlarge $\gamma_r(t)$ to get a closed path which has $z=1$ in its interior. However, it is hard to calculate the integral on other parts of the path.