Adding date and time to logging.