Adds date to the error log file name and moves the file handling code to within the function
Adds date to the error log file name and moves the file handling code to within the function

klpdotorg/dubdubdub,klpdotorg/dubdubdub,klpdotorg/dubdubdub,klpdotorg/dubdubdub