Calculate log base b of x, using the change-of-base formula to support any positive base.
Formula
log_b(x) = ln(x) / ln(b)