Changing logging for logMsg to include date if running from command line