def METHOD_NAME():
    parser = argparse.ArgumentParser(description='ESP32 Log Trace Parsing Tool')
    parser.add_argument('trace_file', help='Path to log trace file', type=str)
    parser.add_argument('elf_file', help='Path to program ELF file', type=str)
    # parser.add_argument('--print-details', '-d', help='Print detailed stats', action='store_true')
    parser.add_argument('--no-errors', '-n', help='Do not print errors', action='store_true')
    args = parser.parse_args()
    # parse trace file
    try:
        print("Parse trace file '%s'..." % args.trace_file)
        lrecs = logtrace_parse(args.trace_file)
        print('Parsing completed.')
    except ESPLogTraceParserError as e:
        print('Failed to parse log trace (%s)!' % e)
        sys.exit(2)
    # print recs
    # get format strings and print info
    print('====================================================================')
    try:
        logtrace_formated_print(lrecs, args.elf_file, args.no_errors)
    except ESPLogTraceParserError as e:
        print('Failed to print log trace (%s)!' % e)
        sys.exit(2)
    print('\n====================================================================\n')
    print('Log records count: %d' % len(lrecs))