完善doLog()