Move log linking into format_log() for later plans