Use fileutils.write_to_tempfile in LogConfigTestCase

There is method to create temporary file in fileutils.
we can utilize that.

Change-Id: I6bbcc82dea509d0a9ea9e831631f6c7cc0c50039
Merge "Use fileutils.write_to_tempfile in LogConfigTestCase"