fix logger compile bugs