View previous topic :: View next topic |
Author |
Message |
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Sun Jun 24, 2007 15:43 Post subject: Some log files don't moving to folder 1 in logs.0 |
|
|
What should i do to fix it?
I have in logs.0/1/ only nwnx.txt, nwnx_odbc.txt and standart nwn logs. And I need nwnx_chat.txt there too. I have got system, which logging muted messages too (in my module eg. commands like !lvup !lv40 and similar) and I need to know, which DM set it up to which player. That is possible but when server boot again, this log dissapear and I won't be able to find out it. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Tue Jun 26, 2007 0:00 Post subject: |
|
|
The official NWNX2 only rotates the offical plugin log files, so you would have to modify the source code and recompile NWNX2 in order to get other files rotated as well.
You might not be able to get it done yourself, but maybe you know someone who can do it for you ? The relevant code would have to be added to nwnserver.cpp, function RotateLogs(), like this:
Code: | strcpy(oldDirName, baseDirName);
strcat(oldDirName, "nwnx_odbc.txt");
strcpy(newDirName, baseDirName);
strcat(newDirName, "1\\nwnx_odbc.txt");
MoveFile(oldDirName, newDirName);
|
Just replace nwnx_odbc with whatever log file you want to rotate.
I hope this points you in the right direction, at least. _________________ Papillon |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Thu Jun 28, 2007 17:29 Post subject: |
|
|
yes I know THE one
thx _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
dsabrae
Joined: 30 Jul 2008 Posts: 23
|
Posted: Thu Apr 30, 2009 16:48 Post subject: I am looking to do this |
|
|
same thing. Did you ever get a working means of doing so and can you share it? |
|
Back to top |
|
|
|