Log.txt
Soul_Rider
Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
in Modding
Quick question about the log file. Is this written to from the engine or the Lua code? I ask because I can't see anything in the project code, although I am aware core files may be writing out to it.
I would like my mod to write to another log file, pglog.txt, for example, so it does not get over written when I fire up a game of vanilla NS2. Is this possible?
I would like my mod to write to another log file, pglog.txt, for example, so it does not get over written when I fire up a game of vanilla NS2. Is this possible?
Comments
If you want a log specific to your mod, then you'll need to handle the file with your code. However, I do not recommend you do this. When it comes down to it, this can introduce additional problems (unclosed file references, additional file I/O, etc). In most cases the normal log.txt is fine, and it's easy enough to just CTRL+F whatever you need in it.
Why do you need an extra log?