Page 1 of 1

specify infolog.txt output destination

Posted: 02 Oct 2010, 19:22
by gajop
By default spring outputs infolog.txt into ~/.spring on linux and probably spring install directory in windows(?).
Would it be possible to have a flag specify a different output directory or file? That would make it possible to have multiple valid infolog.txt from multiple spring instances.
I could be wrong, and this could already exist, but then it's not listed in spring --help.

Re: specify infolog.txt output destination

Posted: 02 Oct 2010, 20:01
by hoijui
What you want, is setting the writable data-dir; see rts/System/FileSystem/DataDirLocater.cpp:170+. highest priority, as you can see, has the SPRING_DATADIR environment variable.

Re: specify infolog.txt output destination

Posted: 03 Oct 2010, 00:52
by gajop
yey, nice, that works just fine for what i need it