refactor the Log format