is this approach correct? $$\log_a b = \frac{\ln b}{\ln a} \tag{1}$$ but from the famous formula $e^{i\pi} = -1$ we can extend the domain of the natural logarithm and have $i\pi = \ln (-1)$ therefore for all real and non-zero a we can have: $$\ln(a) = \ln(|a|\frac{a}{|a|}) = \ln(|a|) + \ln(\frac{a}{|a|}) $$ for example for negative a we have: $$\ln (a) = \ln(|a|) + i\pi$$
and with the formula (1) we can extend this to all real numbers of a and b that are non-zero and the base non-equal to 1. And how can we extend this to quaternions?