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 
 
Regarding Circular Logs ....

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
abraxas77



Joined: 17 Nov 2006
Posts: 15

PostPosted: Tue Apr 08, 2008 18:54    Post subject: Regarding Circular Logs .... Reply with quote

{Response to a wish list post by chris421}

I'm currently achieving this via Griffin's Spawn plugin and a batch file. The Spawn plugin executes my batch file which copies all the nwnx4 log files as well as nwnserverLog1.txt, nwnserverError1.txt, and nwn2_server_errorlog.txt to a timestamped folder (created by the batch file: ) within a specified path.

This gives me with the ability to schedule timed log backups, backups on crash (via the nwnx.ini command option), and a function for backing up logs anytime in-game.

EXAMPLE: (this is what the resulting file structure looks like)

NWN2 (install dir)
|
|-logs
|-|
|-|-2008.04.08#12.00
|-|-|
|-|-|-nwn2_server_errorlog.txt
|-|-|-nwnx.ini
|-|-|-nwserverError1.txt
|-|-|-nwserverLog1.txt
|-|-|-xp_chat.txt
|-|-|-xp_mysql.txt
|-|-|-(etc)
|-|
|-|-2008.04.07#12.00
|-|-|
|-|-|-(log files)

If you're interested, I can fix up my batch file with some user options (such as source paths and filename lists) and post it here.


{EDIT} However, this does not delete the source logs ... There is a command that will move locked files (MV), but I haven't tried it yet.
_________________
aka. twp_andrew

:: Lead Script Design :: The World of Paladium II ::
Back to top
View user's profile Send private message
MadK@



Joined: 01 Aug 2007
Posts: 7
Location: Perth Western Australia (+9GMT)

PostPosted: Wed Apr 09, 2008 6:44    Post subject: Reply with quote

Please !
Very Happy
Back to top
View user's profile Send private message
chris421



Joined: 07 Apr 2005
Posts: 53

PostPosted: Wed Apr 09, 2008 7:17    Post subject: Reply with quote

My "copy certain folders in and out of RAMDisk" is enough of a kludge already.

I'm not using xp_spawn.dll. And I don't want to add any more dll dependencies if they can be avoided, especially since it's unlikely xp_spawn would be able to delete the logs anyway due to the lock.

The log facility refining & standardizations I dropped on the wishlist should be core to the way all the nwnx dlls work, independent of any user batch files (IMHO).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development 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