How do you do a logarithm to a different base than 10?
The rules are the same - what is your question?
If you are asking how you can change a log (that is in a different base than 10) into a log of base 10, you can use the change-of-base formula:
logbase(number) = log10(number) / log10(base).
Example: log8(50) = log10(50) / log10(8)