def METHOD_NAME(log_path, output_path):
    with open(log_path, "r") as log_file:
        with open(output_path, "w") as output_file:
            write_include = False
            for line in log_file:
                # Modify includes
                if line.startswith("#include"):
                    if not write_include:
                        write_include = True
                        output_file.write(HEADERS)
                # Rewrite run_trace() into main function
                elif line.startswith("void run_trace()"):
                    output_file.write("int main() {\n")
                # Skip fboss namespace
                elif "namespace facebook::fboss" not in line:
                    output_file.write(line)