I'm looking for a way to keep the information in the output_log.txt file between runs of the application. As far as I can tell, Unity clears the file every time the application is started. This is what I'm trying to prevent.
Right now I have a coroutine that copies the output_log.txt file to a folder every couple of seconds. The issue with this solution is that if a crash happens, the most important lines in outpot_log.txt from just before the application crashed probably won't be copied. So I'm looking for a solution or an improvement to the solution I already have.
Any help would be appreciated!
↧