Change the log format and output log files.
Change tmpdir behaviors.
Fix log systems.