logBase package:dimensional

Takes the logarithm of the second argument in the base of the first.
>>> logBase _2 _8
3.0