Search Issue Tracker

Fixed in 2019.1



Found in


Issue ID




Command line -logFile with no parameters outputs to screen on OS X but not on Windows



Steps to reproduce:
1. Find attached project in command line Windows
2. Launch Unity with parameters -batchmode -quit -logFile
3. Notice that in -logFile we didn't input any path for the log file to be saved
4. Observe nothing being output
5. Repeat process in terminal on Mac OS
6. Observe logFile being output to terminal

Expected behaviour: The command should function the same on both Mac OS and Windows
Actual behaviour: No output in Windows, while Mac OS outputs the logFile to the terminal

Reproduces on 2017.1.0b1, 5.6.0f3, 5.6.0f2, 5.5.3p1

Notes: This behaviour is likely due to no handlers existing for -logFile command with no parameters.
Notes: The output is written in Windows, but it defaults to a location that the user probably doesn't expect: %LOCALAPPDATA%\Unity\Editor.

  1. Response avatar


    Sep 28, 2018

    Hey, here is a response from dev team:
    "It has been on our radar for quite some time. Unfortunately the current situation with priorities is such that we might not have the bandwidth to address this issue until at least 19.1+."

  1. Response avatar

    Resolution Note (fix version 2019.1):

    Logging now defaults to stdout on all platforms when running in batchmode. Note that on Windows, this still means output won't go to console by default as Windows applications don't have stdout handle by default. Output will, however, go to stdout if you launch Unity with a valid stdout handle. I.e. launching as a child process of a build system with redirected handles

Comments (25)

  1. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm


    Jul 06, 2020 16:37

    I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.
    this website

  2. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm


    Jul 05, 2020 17:11

    I am no expert, but I believe you just made an excellent point. You certainly fully understand what you are speaking about, and I can truly get behind that.
    the advantage

  3. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm


    Jul 03, 2020 21:13

    I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, i am always look for people to check out my web site.
    use this link

  4. 6845e15db0d0383c2644f384bb6e1376?d=mm


    Jun 28, 2020 13:56

    Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day!
    are speaking

  5. 6845e15db0d0383c2644f384bb6e1376?d=mm


    Jun 14, 2020 12:25

    I just want to let you know that I just check out your site and I find it very interesting and informative..
    look at more info

  6. 6845e15db0d0383c2644f384bb6e1376?d=mm


    Jun 11, 2020 21:32

    i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..

  7. 592516a49927a8a944da7644ada256a8?d=mm


    Jun 11, 2020 10:32

    this is really nice to read..informative post is very good to read..thanks a lot!
    máy Kangen

  8. 482cfff1c21068a8f1846c9e632908b9?d=mm


    May 13, 2020 16:31

    Just for posterity, this is what works for me from a PowerShell script using Unity 2019.3.0

    & "$UNITY_EXE" -batchmode -logFile - -quit -projectpath "$PROJECT" | out-host

    Thanks infinibuzz for the hint

  9. 592516a49927a8a944da7644ada256a8?d=mm


    Apr 12, 2020 15:49

    I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
    Zahnarztpraxis Zürich

  10. 592516a49927a8a944da7644ada256a8?d=mm


    Apr 11, 2020 11:51

    I like this post,And I guess that they having fun to read this post,they shall take a good site to make a information,thanks for sharing it to me.
    xo so mien bac hom nay

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.