Unify handling for logs and milestones.