Converted log_record dictionary to use OrderedDict if it is supported