Online learning for the Kalman filter with logarithmic regret