Reform log format