Let $X$ be a finite dimensional complex vector space. For $A \in L_\mathbb{C}(X)$ (the set of all complex linear maps from $X$ to itself), we define $$ e^A = \sum_{k=0}^\infty \frac{A^k}{k!}. $$ Show that if $B \in L_\mathbb{C}(X)$ with $\det B \neq 0$, then for some $A \in L_\mathbb{C}(X)$, $e^A=B$.
My original attempt was since $B$ has some Jordan decomposition, i.e., $B = PJP^{-1}$, I can apply the log function to show that $A = P\log(J)P^{-1}$. However, I see that I can run into cases where the diagonal entries of the Jordan form are negative. How should I go about doing this?