Search Unity

How to see logs from standalone builds?

Discussion in 'Scripting' started by Koval331, Oct 26, 2019.

  1. Koval331

    Koval331

    Joined:
    Feb 3, 2019
    Posts:
    114
    When I go into the ...Data folder, I don't see any output.txt file in there.

    Capture.PNG

    Inside ...Data folder:

    Capture1.PNG

    So how can I see the logs from my standalone build?
     
  2. SisusCo

    SisusCo

    Joined:
    Jan 29, 2019
    Posts:
    1,323
    Ryiah, Bunny83 and zipshowxr like this.
  3. Bovine

    Bovine

    Joined:
    Oct 13, 2010
    Posts:
    195
    Hmm, I see this folder but when I run the Windows build nothing is written there. I was kind of expecting some unity logs - I have an issue where my shader is not working in the build so was expecting to find some complaint in the log file... but nothing. When I had this before debugging quest it was there.
     
  4. Bunny83

    Bunny83

    Joined:
    Oct 18, 2010
    Posts:
    3,987
    Note that CompanyName and ProductName is the name you actually set in your project settings. The log should always be created when you run your game, not just when an error occures. Though you could have deactivated the logging in your build settings in which case the log is probably not created.
     
  5. Bovine

    Bovine

    Joined:
    Oct 13, 2010
    Posts:
    195
    Thanks! Where would I have deactivated logging? I was looking through the build and project settings but couldn’t see anything?

    I'm kind of expecting to see the kind of startup logs I see when connected to quest and debugging, streams of initialisation tasks and general info and occasionally an error. Just can’t figure out what’s wrong. Black screen so a bit odd. Is clearly shader related as I am able to swap out the shader and it run fine….
     
  6. Bunny83

    Bunny83

    Joined:
    Oct 18, 2010
    Posts:
    3,987

    In your project settings:
    upload_2023-12-12_0-40-48.png

    Many don't understand what "Player" means here in the settings and even when it comes to "PlayerPrefs". This has nothing to do with the person playing a game. The "player" is essentially the Unity engine itself that is playing your game / content. Like the VLC player plays videos or the flash player played flash content.

    Note that at the end of the "Other Settings" foldout, you can also specify what kind of stack trace you want in your logs:
    upload_2023-12-12_0-47-17.png
     
    SisusCo, Lurking-Ninja and Bovine like this.
  7. Bovine

    Bovine

    Joined:
    Oct 13, 2010
    Posts:
    195
    Thanks very much, I literally come back to say I suspect I found it, the bottom set to ScriptOnly.... much apreciated, I completed missed these log settings earlier, can now confirm I have logs! Now, if I can just figure out WHY the shader is broken.... :(