Suppose a function $\eta (z)=log(\psi (z))$ where $$\psi (z)=\prod_{k=1}^{n} \left(z-z_k\right)$$ We know that $log(z)=log|z|+i(argz)$, this implies that $$log(\prod_{k=1}^{n} \left(z-z_k\right))=\sum_{k=1}^{n}log|z-z_k|+i\sum_{k=1}^{n}arg(z-z_k)=log|\psi (z)|+i\sum_{k=1}^{n}arg(z-z_k)$$ I am new to contour integration but I was told that for 2 complex numbers $\varepsilon_1$ and $\varepsilon_2$ $log(\varepsilon _1,\varepsilon _2)\neq log(\varepsilon _1)+log(\varepsilon _2)$. how do we choose the arguments of $\left(z-z_k\right)$ so that we can expand the log of products of complex numbers as sum of their individual logs and vice versa when doing complex analysis?
how do we choose the arguments of $\left(z-z_k\right)$ for every individual $z_k$ so that $$\sum_{k=1}^{n}arg(z-z_k)\in(-\pi,\pi]$$ or the principle branch?