Add option to log to stdout for logger. Also make sure log file reopens do no
harm when logging has not been initialized or is using stdout logging.
Add logging of stack traceback in debug mode.
Add --stdout option to log to stdout.
Regenerate generated files and commit them.