PDA

View Full Version : Event logging?


Kamamura
March 12th, 2008, 06:30 AM
Hello, how can I enable it? Since the last patch, strange things started to happen, like my Hefaistos-style pretender (the giant smith) started to forge the dwarven hammer, but failed two times to no particular reason and then succeded.

I would like to know what's going on in my game, I have seen some logs posted in this forum, but I cannot find a logfile anywhere among the installed files.

I run Dominions 3 v. 3.15 on Linux.

Thank you in advance.

Edi
March 12th, 2008, 06:36 AM
You need to enable debugging with the -ddd switch when you start Dominions, IIRC.

Kamamura
March 12th, 2008, 06:48 AM
Thank you very much. One more question, will the debug information be sent to some specific file, or to standard output, or to syslog perhaps?

Kamamura
March 12th, 2008, 06:50 AM
Ah, I see, standard output. What a mess...

Endoperez
March 12th, 2008, 06:58 AM
There is a log.txt file in the main Dominions 3 directory, if you're looking for a log file. I think that's what you wanted.

thejeff
March 12th, 2008, 09:02 AM
You can redirect standard out wherever you want, so it may actually be more convenient than going to some unknown file.

Endoperez
March 12th, 2008, 09:15 AM
I have no idea how to handle standard output, and no clear idea how I'd get it any way... I understand it'd be much easier in non-Windows system, but that's about it. I'm not sure if "what a mess" was directed towards extracting the standard input, or the generated log.

You can try different values of -ddddd to make the log more or less detailed, IIRC.

Kamamura
March 12th, 2008, 10:23 AM
Sorry, the mess remark was about the structure and information contained. Maybe the number of "d" will trim the verbosity to desired levels.

Redirecting standard input is of course trivial

./dom3 -ddd > /var/log/dom3.log

for example.

Thank you once again