modify log to md