def get_error_log_from_txt(data):
    error_log = ErrorLog()
    error_log.date = data[0]
    error_log.log_level = data[1]
    error_log.log_id = data[2]
    error_log.log_event = data[3]
    error_log.route = data[4]
    error_log.transaction_id = data[6]
    error_log.user_email = data[9]
    error_log.package = data[13]
    error_log.error_message = data[14]
    return error_log
def get_error_log_from_dict(data):
    error_log = ErrorLog()
    error_log.date = data['_date']
    error_log.log_level = data['_log_level']
    error_log.log_id = data['_log_id']
    error_log.log_event = data['_log_event']
    error_log.route = data['_route']
    error_log.transaction_id = data['_transaction_id']
    error_log.user_email = data['_user_email']
    error_log.package = data['_package']
    error_log.error_message = data['_error_message']
    return error_log