Changed to customLog to make it more readable and added new helper function dateFormat()
Changes to customLog to be more readable, also added new helper function dateFormat()