I am evaluating the integral: $$\int_{\gamma}\frac{dz}{z}$$ Where $\gamma$ is a Straight line path from $1$ to $1+i$.
So by Fundamental theorem of Complex integration we have:
$$\int_{\gamma}\frac{dz}{z}=\int_{1}^{1+i}\frac{dz}{z}=\ln|z|\:\: \big \vert_{1}^{1+i}=\frac{1}{2}\ln(2)$$
But the answer in the book is $$\frac{1}{2}\ln(2)+i\frac{\pi}{4}$$
I suppose the antiderivative of $\frac{1}{z}$ should be $ \operatorname{Log} z$ instead, where $ \operatorname{Log} z$ is the principal branch of the complex logarithm. Accordingly, the value of $\operatorname{Log} (1+i)$ is $ \frac{1}{2} \ln (2) + i \frac{\pi}{4}$.