Modifying print_log_list to generate code in a general fashion rather than Chromium-specific.