Get the logarithm of a number to a specified base.