Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Is Player.log don't generate in macOS (silicon) editor?

Discussion in 'Editor & General Support' started by Only4gamers, Aug 8, 2023.

  1. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    Hi there,
    Player.log is not generating in my game project and I can't find the option to enable Player log in the Player settings. Is this option missing in macOS Silicon editor?
    My Editor version: 2021.3.29f1

    Edit: Now I can see "Use Player Log" option in the player settings and it is enabled but still no player.log generating.
     
    Last edited: Aug 8, 2023
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,028
    It's not in here?
    ~/Library/Logs/Company Name/Product Name/Player.log

    Company Name & Product Name are set in Player Settings.
     
    Only4gamers likes this.
  3. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    No, player.log file is not in the location.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,028
    The "Use Player Log" setting is enabled?
    upload_2023-8-8_18-40-39.png

    The manual also mentions this:
    Note: You can also use the Console.app utility to find the log file.
     
    Only4gamers likes this.
  5. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    Yes this option is enabled. I also checked on Console.app. There is no Player.log file either.
     
  6. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,028
    Then I'm stumped. I think the log should be created even without anything explicitly getting logged, but try adding a Debug.Log() and LogError() at the start of the app to check if that makes it appear.
     
    Only4gamers likes this.
  7. Only4gamers

    Only4gamers

    Joined:
    Nov 8, 2019
    Posts:
    311
    Looking like my mistake. maybe this log only generates in Player build. Thank you for your help :).