where is the output log found on a Linux headless server?

I’m running Unity Pro 4.1.3 (Unity editor is on my Windows 7 laptop), and have built a Linux x86_64 architecture binary for use on my Amazon EC2 Fedora 64-bit server.

I’ve uploaded both the executable (with chmod +x on it so it executes) and the data folder into my home folder. I’m using the following command line to instantiate the server (the server app is called “zone1”):

xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' ./zone1 -batchmode -nographics

The output is as follows:

Set current directory to /home/ec2-user/unity
Found path: /home/ec2-user/unity/zone1
Mono path[0] = '/home/ec2-user/unity/zone1_Data/Managed'
Mono path[1] = '/home/ec2-user/unity/zone1_Data/Mono'
Mono config path = '/home/ec2-user/unity/zone1_Data/Mono/etc'

/usr/bin/xvfb-run: line 166: 23189 Aborted                 DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1

I’ve looked in /var/log and found nothing. I’ve also looked for an output.txt in the zone1_Data folder (as it is when I run the windows version on a windows server). No joy. Is there a log file somewhere that will tell me what is going on, or is it just this console output?

After some further investigation, I have some more information, as well as a workaround.

First of all, apparently Unity 4.1 no longer requires the use of xvfb-run. This simplifies the command line somewhat, and probably also eliminates some overhead/dependencies that could cause issues.

Secondly, I’ve discovered that the linux command line also takes an optional "-logfile " argument (although it is implied that it only works on Windows on Unity - Manual: Command line arguments). So I can now work around the original problem and view the logfile as follows:

./zone1 -batchmode -nographics -logfile zone1_output_log.txt

This effectively answers my original question, although I’m still curious as to where the default location of the logfile is in linux. Anyone know?

You can find the log here:

~/.config/unity3d