Prove that if $\zeta \in \mathbb{C}$ and $r>0$ then $$ \frac{1}{2\pi}\int_0^{2\pi}\log\left\lvert re^{it}-\zeta\right\rvert\,dt = \log \left\lvert\zeta\right\rvert\, $$ if $\,r\leq \left\lvert\zeta\right\rvert$, and it is $\,\log r\,$ if $\,r> \left\lvert\zeta\right\rvert$.
My Try:
First I consider the case where $\zeta=0$. Then we have only the case where $r>\left\lvert\zeta\right\rvert$. Then the result is obvious.
Now suppose $\zeta\neq 0$. Then $\left\lvert\zeta\right\rvert>0$. Suppose $0<r'<\left\lvert\zeta\right\rvert$. Let $u\left(z\right)=\log\left\lvert z\right\rvert$ for $z\in \mathbb{C}$. Then $u\left(-\zeta\right)>-\infty$. So $u\left(z\right)$ is harmonic near $-\zeta$. So there is $\rho>0$ $(\rho$ depends on $-\zeta)$ such that $u\left(-\zeta\right)=\log\left\lvert\zeta\right\rvert=\frac{1}{2\pi}\int_0^{2\pi}\log\left\lvert re^{it}-\zeta\right\rvert \, dt\,$ for all $0\leq r<\rho$. Now if $r'<\rho$ then we are done. But what if $r'>\rho$? That is the place where I stuck. Can somebody please help me to solve it? Moreover, I don't know how to handle the case where $r'=\left\lvert\zeta\right\rvert$ for the original problem.