make a log helper function that adds timestamps