In my introductory complex analysis course, the professor mentioned that we can define the complex logarithm via an integral instead of the standard branch cuts method. He didn't prove it but left us with this:
On a simply connected domain $G \subset \mathbb{C}\setminus\{0\}, 1 \in G,$ define $\log z=\int_{1}^{z}\frac{1}{w} dw$, the integral is taken over an arbitrary path from $1$ to $z$. Then, we can say that $e^{\log z}≡ z$ in $G$.
Could someone help me verify this?