Outputs the logarithm of a number by a given base.