Let $n$ be a fixed positive integer. Show that there exists a holomorphic function $f : \mathbb{C} \setminus \mathbb{R}_{\leq 0}$ such that $[f(z)]^n = z$.
This question is related, but the domain differs from mine.
My attempt is as follows: It's clear the idea is to show that "$z^{\frac{1}{n}}$" is holomorphic in $\mathbb{C} \setminus \mathbb{R}_{\leq 0}$. Alternatively, we can write $z^{\frac{1}{n}} = e^{\frac{1}{n}\log{z}}$. Now since $\log{z}$ is holomorphic on $\mathbb{C} \setminus \mathbb{R}_{\leq 0}$ with branch cut $|\theta| < \pi$, we have that $e^{\frac{1}{n}\log{z}} = z^{\frac{1}{n}}$ is also holomorphic.
However, this attempt feels odd to me. I always have the feeling that in complex analysis, we try to avoid the $\log$ function (if we even treat it as a function). I would like to know if my attempted solution is complete, and if I can improve it any further.