I'm having trouble proving or disproving this question. I kind of expect that there is no such function since the definition of the logarithm of a function $\phi$ that is analytic on a simply connected open set $U$ is
$$L_\phi(z)=\int^z_{z_0}\frac{\phi'(\zeta)}{\phi(\zeta)}d\zeta + w_0.$$
With $w_0$ being a complex number such that $e^{w_0}=f(z_0)$. But in our case we are looking for an analytic function on $\mathbb{C}\setminus[-1,1]$ which is not simply connected.
But on the other hand if I let $\phi(z)=\frac{z+1}{z-1}$ and $\gamma$ be a path in $\mathbb{C}\setminus[-1,1]$ from $z_0$ to $z$ and define $f(z)=L_\gamma\phi(z)$ as
$$L_\gamma\phi(z)=\int^z_{z_0,\gamma}\frac{\phi'(\zeta)}{\phi(\zeta)}d\zeta + w_0.$$
Then for any two different paths in $\mathbb{C}\setminus[-1,1]$ connecting $z_0$ and $z$ the results of $f(z)$ will differ by an integer multiple of $2\pi i$. So even though $f$ may not be well defined the exponential of $f$ is well defined since
$$e^{L_{\gamma_1}\phi(z)}=e^{L_{\gamma_2}\phi(z)+m2\pi i}=\phi(z)=\frac{z+1}{z-1}.$$
These have been my attempts so far, but I am not sure if I am on the right track or completely missing something.