Adapter Design Pattern code: 7 - logToCSVAdapter extends errorObject.