jo82
September 24, 2020, 6:18pm
1
Hi,
I’m using unity 2020.1.6f1 and the player log is not being created in the
C:\Users\user\AppData\LocalLow\DefaultCompany\ProductName folder.
When I create a new project it does create the player log file.
I deleted every files related to the standalone game then republished but it still doesn’t publish the player log file
What could be wrong?
2 Likes
I don’t understand your issue. You say it doesn’t create the log, then you say you create a new project and it does create the log. Are you sure you’re looking in the correct company/product folder?
jo82
September 25, 2020, 8:53am
3
Hi Joe-Censored, thanks for your time.
My bad, my op was a bit confusing.
What I mean is that I have an old project I’ve been working on for years and it’s the one for which the player log is not being created.
What I tried was creating a new project just to see if it would create a player log for this new project and it does work.
I’m just wondering why it can’t create one for my old project and yes I’ve been looking in the correct folder.
I don’t really know what to try, all settings look okay to me.
1 Like
jo82:
Hi Joe-Censored, thanks for your time.
My bad, my op was a bit confusing.
What I mean is that I have an old project I’ve been working on for years and it’s the one for which the player log is not being created.
What I tried was creating a new project just to see if it would create a player log for this new project and it does work.
I’m just wondering why it can’t create one for my old project and yes I’ve been looking in the correct folder.
I don’t really know what to try, all settings look okay to me.
No problem. Here’s a few ideas to check.
Check the the Player Settings, Standalone Player Options. Verify “Use Player Log” is checked.
https://docs.unity3d.com/Manual/class-PlayerSettingsStandalone.html
Check that you don’t have logging disabled in code (possibly from even 3rd party code). Example:
Debug.unityLogger.logEnabled=false;
You can also try using the -logFile command line argument when launching your build to force the log file to a specific path/filename. Also verify if you are launching your build with a 3rd party launcher or with a script/batch file, that you aren’t already using -logFile to redirect the log to some unexpected location.
https://docs.unity3d.com/Manual/CommandLineArguments.html
-logFile
Specify where Unity writes the Editor or Windows/Linux/OSX standalone log file. To output to the console, specify - for the path name. On Windows, specify - option to make the output go to stdout, which is not the console by default.
jo82
September 26, 2020, 4:46am
5
Hi Joe-Censored, thank you so much.
That option “Use player Log” was not checked.
I was actually looking for that option but couldn’t find it. I thought it had been removed in recent versions, dunno why…
Thanks a lot.