Hi, Unity 2019.1.10f1 user here. I was wondering why's the Player Log file still created when I publish my game even though it's unchecked in the players settings. When I try the game in the standalone player I get all my debug.logs in the Player.log file situated in C:\Users\me\AppData\LocalLow\DefaultCompany\MyGame Doesn't this have an effect in the game performance if all the logs get written while playing? Thanks
Debug.Log calls are surprisingly costly. You should disable any which happen on a regular basis in a released build. Limit your use to important information if you should actually need to view the log file, or error reporting.
Hi, Joe-Censored, Thanks for the reply but do you have any idea why it's still being created even if I unchecked "use player log" in project settings? I mean if you check or uncheck this option it still create the file so I guess the option is useless in the end.
Noticed this in 2019.10 also, Player.log is being created despite the option being switched off. I'll try to submit it as a bug.
Funny up until now i thought the "use player log" meant that the engine does not stops the debug.logs to write into the file (but the time consuming C#->C++ transfer still paid, this is why I'm advocating the removal of the Debug.Logs from the code physically, although the info is scarce on this, I may be wrong) and the other log options can also write into the log file independently https://docs.unity3d.com/Manual/class-PlayerSettingsStandalone.html#Logging Apparently I was wrong?
Removal through code is good, recommended even. However, Unity itself writes debug info at the start: DirectX stuff etc. which is written even before I can intercept it to stop logging. The option is to not write a file and that is broken in recent Unity versions. I hope they fix it soon.