$k^m = m^k \implies m\log_b k = k\log_a m$ will be true no matter what base $b$ you choose. And as $\log_b k$ an $\log_b m$ will always be in the same proportion ($\frac {\log_b k}{\log_b m} = \frac {\log_a k}{\log_a m}$ for all legitimate $a,b$) it doesn't matter which you pick.
Unless you are doing scientific notation where units and measurements are specifically designed to be represented in powers of $10$s there is nothing advantageous about $10$ over, say, $17$. And $k \log_{17} m = m\log_{17}k$ is a perfectly true and legitimate statement.
But if you are doing scientific notation where units are based on powers of $10$ then $\log_{10}$ has an obvious advantage.
If you are doing anything that might even remotely no matter how obliquely involve differentiation or integration (or even tangents or rates of change) you should use $\ln$ as it is ... natural. So that is why it is conventional to default to natural logs.
I'm surprised though that no-one has suggested logs based $k$ or $m$. That has the advantage of reducing an equation with two logarithms to one. $m = k\log_k m$ and $k = m\log_m k$ which could often help us. Although in this case it doesn't)
Use whatever base you like. Sometimes there will be practical advantages to use a specific base (Solve for $3^{27x} = y^{81} \cdot 3^{7}$ just screams for base $3$) but usually there won't be. The convention is math is base $e$. I imagine im must sciences is is also base $e$ but I imagine there are same instances where convention is $10$.
But it doesn't matter.
===
$3^{27x} = y^{81} \cdot 3^{7}$
$\log_3 3^{27x} = \log_3(y^{81} \cdot 3^{7})$
$27x = 81\log_3 y + 7$
$x = 3\log_3 y + \frac 7{27}$.
But you could just as well (but not as easily solve it with natural logs.
$\ln 3^{27x} = \ln(y^{81} \cdot 3^{7})$
$27x \ln 3 = 81\ln y + 7\ln 3$.
$x = \frac {81\ln y + 7\ln 3}{27\ln 3}$
$= 3\frac {\ln y}{\ln 3} + \frac 7{27}$. The same answer.
And if we had use common $\log$ wed have gotten.
$x = 3\frac {\log y}{\log 3} + \frac 7{27}$.
All the same.