完善logging