Show that $$u(z)=\log(x^2+y^2)$$ is harmonic in $z\ne 0$ and that $u$ cannot be the real part of an analytic function in $z\ne 0$.
My attempt:
Direct calculation shows that $u_{xx}+u_{yy}=0$ in $z\ne 0$.
The solution in the book to show that $u$ cannot be a real part of an analyitc function in $z\ne0$ is that if such $f$ exists then $f(z)=\log(z)+c$ for all $\arg(z)\in(0,2\pi)$ but I don't see why that's true.