There is this function from another question that is given as the solution to generate the minor breaks of a logarithmic axis:
log10_minor_breaks = function (...)