Enable environment variable TMPDIR to set the log temporary directory.