Quantcast
Channel: Questions in topic: "log"
Viewing all articles
Browse latest Browse all 235

How do I find the player log file from code?

$
0
0
I want to write a script to upload logfiles with a bugreport. How do I find the logfile? (For production, so *no* [editor logs][1].) [The documentation][2] gives these paths: * macOS ~/Library/Logs/Unity/Player.log * Linux ~/.config/unity3d/CompanyName/ProductName/Player.log * Windows [Unity 5.6][3] _EXECNAME_Data_\output_log.txt * Windows [Unity 2017+][2] C:\Users\username\AppData\LocalLow\CompanyName\ProductName\output_log.txt How do I translate these paths into code? [CommandLineArguments docs](https://docs.unity3d.com/Manual/CommandLineArguments.html) has an entry for a `-logFile` option: > Specify where the Editor or Windows/Linux/OSX standalone log file are written. If that's used, is there a way to get a path to the log file? [1]: https://answers.unity.com/questions/9739/how-can-i-find-editor-log-file.html [2]: https://docs.unity3d.com/Manual/LogFiles.html [3]: https://docs.unity3d.com/560/Documentation/Manual/LogFiles.html

Viewing all articles
Browse latest Browse all 235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>