Added write_lines_to_remote_log