Logfile?!?


(Temp1337) #1

Someone know the command to enable the Logfile?


(RR2DO2) #2
// Logging Setting
seta logfile "2"									// 1: log, 2: flush on write
seta logTimeStamps "1"								// 1: log timestamps
seta logFileName "console_$Y-$M-$D_$h.$m.$s.log"	// log file name (optional, can be left default), $ symbols for timestamp based naming

(Courgette) #3

The log file created when the logfile cvar is set is just a dump of the game console.
Could not that game have a “game log” like Quake3 games have ? The game log should only have events regarding the game (players connecting, changing teams, kills, etc) and not have anything regarding engine entities or warning within threads…


(Decayed) #4

what does logfile 2 mean as opposed to 1? more verbose?


(Trivve) #5

1 = buffer log, 2 = flush after each print.

Basically each time the server is restarted the log will be flushed. Since many GSP auto restarts servers in case it crashes it’s a good idea set logfile to buffer instead to collect debug data.


(Lokalen) #6

I would not advice running logs unless you are certain you will use them for something. At the moment they get really big, really fast and they are filled with not so well formatted information.

There is a logFilter cvar you can use to filter out some information, but I am not sure if you can filter out several types or just one using this method (haven’t tested it).

Trivve, are you a PROMOD developer? And where in Sweden do you live?


(Crytiqal) #7

So I just did a quick logfile, and it seems to me it doesn’t even log when a plant is charged, nor when a player dies.

Is this really true? What would be the point in having a logfile then? :s


(Crytiqal) #8

Could someone post a log of a full game (4v4 or something)?

I would like to see how it tracks kills etc.