Search Unity

Write Unity's Console log to a file?

Discussion in 'iOS and tvOS' started by aerende, Nov 12, 2009.

  1. aerende

    aerende

    Joined:
    Apr 27, 2009
    Posts:
    316
    Is it possible to write Unity's console log to a file? Having the output of Unity's console in a file would make the Debug.Log output easier to search.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    It's already written to a file. Help -> Open Editor Console Log. That just opens the relevant ~/Library/Logs/Unity file in the console.

    --Eric
     
  3. aerende

    aerende

    Joined:
    Apr 27, 2009
    Posts:
    316
    Eric5h5:

    Awesome! Thanks for the path!
     
  4. aerende

    aerende

    Joined:
    Apr 27, 2009
    Posts:
    316
    I noticed that if I pause Unity, the log shown in the Unity Console isn't the logfile in ~/Library/Logs/Unity/Editor.log. Even if I stop Unity, these two log files aren't identical. The logfile in ~/Library/Logs/Unity/Editor.log seems to be from a few runs of Unity past.

    Does anyone know how to get the logfile in ~/Library/Logs/Unity/Editor.log to be the same as the one shown in the Unity console?
     
  5. WardXmodem

    WardXmodem

    Joined:
    May 15, 2015
    Posts:
    1
    In Unity 5 I cannot find the console logs anywhere. help => has no console related option. Another thread said it was in /applications/... but I have no /applications directory in either the unity install (program files) or in my current project directory (or anywhere on my drives).

    I get so many logs from events for "repaint" and "layout", the stuff I want is pretty impossible to find.

    Thanks in advance!!

    /Ward Christensen [inventor of Xmodem & BBSs(*)]
    (*) w/HW genius, Randy Suess
     
    Ziplock9000 and renman3000 like this.
  6. drawcode

    drawcode

    Joined:
    Jul 21, 2008
    Posts:
    72
    Here's all the log locations: http://docs.unity3d.com/Manual/LogFiles.html
     
    snowmobeetle likes this.
  7. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    Last edited: Apr 19, 2017
  8. webster

    webster

    Joined:
    Jun 8, 2013
    Posts:
    21
    I'm not seeing this at all. I mean, I see log files. But they do NOT contain my Debug.Log() output of any sort.
     
  9. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697

    What are you looking for? Access to the CPU's console, for Unity?

    If so, its in the drop down of the console Tab, in Unity. !
     
  10. nicolincn0322

    nicolincn0322

    Joined:
    Sep 18, 2017
    Posts:
    2
    I think the purpose is to save all the lines in the unity console to a file(.txt or alike). But he found that although there were several log files, but they were not the same as he saw in his unity console right at that time.
    Hope it will help.
    Honestly,I am also having this problem.
    Thanks for any reply.
     
  11. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697

    If you can't find the Console Log, for your desktop, for Unity, go to the Unity Edit, console log, tab, drop down menu. There is an option for the Desktop Console.
    Copy and paste anything you want from that console, in case of crash, as it will remain open, despite a Unity fail.
     
  12. zedz

    zedz

    Joined:
    Aug 31, 2013
    Posts:
    250
    Yes I also would like the ability to save the console output to a file
    edit: btw the above suggestion about Desktop Console isnt there in unity 2017.3
     
    Last edited: Aug 21, 2018
    Ziplock9000 likes this.