I would like to know if it is possible to save the output_log or maybe to save the log to a different location.
I want to use a different file at each game instance.
Is it possible ?
2 Answers
2Hi, I’m not aware of a way of doing this. As a workaround, maybe you could register to the application events and create your own version of the output, but I’m not sure if you get all the same information. Other than that, maybe create a launcher that checks for the output file and renames/moves it before running the game’s executable. I’m not sure if that helps =P
Actually you can launch your exe with the -logFile parameter. you can provide a path and a specific log name. Not the best (having problems with this param as you can check here : -logFile argument with special characters - Unity Answers)
something like “-logFile ./logs/log_date.txt”. Absolute and relative paths both works.
Hope it helps !
/Adpist
I did not know that was an app argument - though it makes sense. So a launcher could check for log files and increment or pass in the date/time when running the game. Good find ;)
– Chris_Dlala
Thank you for your answer, I think that the best idea is to create a launcher but how ?
– MaT227I'm not sure exactly how to make it cross-platform, but all you need is a simple program to run your executable with [-logFile argument][1] passed in (Thanks to @Adpist for that info). A simple C# console program should get you started but you may want to ask a new question to increase your chances of getting valuable info. [1]: http://docs.unity3d.com/Manual/CommandLineArguments.html
– Chris_Dlala