logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Some log files don't moving to folder 1 in logs.0

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support
View previous topic :: View next topic  
Author Message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Sun Jun 24, 2007 15:43    Post subject: Some log files don't moving to folder 1 in logs.0 Reply with quote

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
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Tue Jun 26, 2007 0:00    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Thu Jun 28, 2007 17:29    Post subject: Reply with quote

yes I know THE one Very Happy

thx
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
dsabrae



Joined: 30 Jul 2008
Posts: 23

PostPosted: Thu Apr 30, 2009 16:48    Post subject: I am looking to do this Reply with quote

same thing. Did you ever get a working means of doing so and can you share it?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group