Re: Log
You cannot enable logging from the script. But if you enable it in GUI preferences, the script will be logged too.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.