Fix wrong class passed to Logger.