A logarithmic Gauss curvature flow and the Minkowski problem