Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Debug.Log logging

Discussion in 'ML-Agents' started by seboz123, Jun 16, 2020.

  1. seboz123

    seboz123

    Joined:
    Mar 7, 2020
    Posts:
    24
    Hi,

    So when I build my Project as an executable and running it, it sometimes crashes. So I was wondering if there is a Log File of the Debug.Log log. When I run the exe normally, I gets created under C:\Users\user\AppData\LocalLow\DefaultCompany\Project.
    But when I train the exe with mlagents, I does not create a log there.
    Am I missing something?

    Thanks
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,843
    Let me flag this for the team to have a look. Which version of ML Agents, Python, & C# are you using?
     
    seboz123 likes this.
  3. seboz123

    seboz123

    Joined:
    Mar 7, 2020
    Posts:
    24
    I am using: ml-agents: 0.17.0, ml-agents-envs: 0.17.0, Communicator API: 1.0.0, TensorFlow: 2.0.0 and python 3.7.7
     
  4. celion_unity

    celion_unity

    Joined:
    Jun 12, 2019
    Posts:
    289
    This isn't specific to ML-Agents. You can set the log path that Unity write to by passing "-logfile" to the executable commandline, or "-logfile -" to make it write to the console. When using mlagents-learn, you can use "--env-args -logfile logs.txt" "--env-args -logfile -" to make sure this is passed to the executable.
     
  5. seboz123

    seboz123

    Joined:
    Mar 7, 2020
    Posts:
    24
    Perfect, Thank you very much!