20130911 Add log save to file function.