Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unity Server Build Logs

Discussion in 'Editor & General Support' started by SSL7, Aug 7, 2020.

  1. SSL7

    SSL7

    Joined:
    Mar 23, 2016
    Posts:
    347
    I'm trying to find where are the logs going when check the Server Build in build settings. When unchecked the logs are going to the usual folder in user/appdatalow/company/game, but when in Server build I can't find the log file.
     
  2. nlebedenco

    nlebedenco

    Joined:
    May 12, 2014
    Posts:
    11
    I reckon this may come a little late but for the record, as of Unity 2019.4, Server Build only logs to stdout and completely ignores the -nolog parameter but if you supply -logFile <filename> it will redirect stdout to that file thus bringing all Debug log messages with it. Only drawback is that it's not possible to interact with stdin/out AND have unity log messages to file simultaneously. If you want to suppress log messages altogether you have to set Debug.unityLogger.logEnabled = false by yourself.
     
    davidrochin likes this.