Originally Posted by
Purple Elephant1au
Hey all,
I can get my logfiles working to a custom directory in Linux ( Ubuntu and CentOS )
You need to set the fs_outputpath and logfilename
The game server will automatically append "main" to the end of whatever this cvar's value is. In my case the log file will be created in:
/home/purple/.mohaa/main/
Next, type this in the game server console:
logfilename
If you haven't overriden this setting it should echo back this:
"logfilename" is:"server1.log" default:"qconsole.log"
The game server puts these two pieces together in order to form the fully qualified path to the log file. In our example, the file created will be this:
/home/purple/.mohaa/main/server1.log
KEY POINT
I can only seem to get these commands to work if you set them in the startup commandline.
./mohaa_lnxded +set dedicated 1 +set ui_console 1 +set net_IP x.x.x.x +set net_port 12205 +set g_gametype 1 +set fs_outputpath "/home/gs/servers/logfiles" +set logfilename "mohTest.log" +map dm/mohdm6 +exec serverTest.cfg