create a method that accepts an IOException as an

modify the ProductTextFile class so that it writes exceptions to a text file named errorLog.txt instead of printing them to the console. To accomplish this I need to add a method named printToLogFile that accepts the IOException as an argument and it needs to append two records to the log file: one that indicates date and time of the exception and one that contains the information of the exception.