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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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,799
    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

    Unity Technologies

    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!