Logarithmic Regret for Nonlinear Control