write log file to appdata folder along with everything else