varnumeric uses the same calculator library as the gradebook. In principle it might be possible to add a log10 function, or just a log(x, base) function of two arguemnts, but this would be a core change so you would need to open a feature request at https://tracker.moodle.org/ if there is not on there already.