Output script messages to log file and add timestamp