modified log function to print friendly datetime