Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Wed Apr 19, 2006 11:53 pm   

Logging Child Windows
 
I'm sure I have just missed something obvious here, But i find that the stuff I #GAG out when it goes to a child window, does not end up going to the logfile. Is there a way to make sure it still gets logged?
_________________
Discord: Shalimarwildcat
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Apr 20, 2006 12:42 am   
 
If I recall correctly because the #GAG command deletes content from in MUD output it's never received by the logger. One option is to explicity #WRITE it using the following command.

Untested but should give the general idea. Assuming you pattern match a the line to GAG in

#FILE 1 MyLogFile.txt
#WRITE 1 %line
#GAG
_________________
Asati di tempari!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Thu Apr 20, 2006 2:25 am   
 
Is there a way to start secondary log files for the child windows atconnect, then append those to the end of the current main log file atdiscconect?

I use this for logging currently:

#alias atconnect {#LOG %replace( %title, " ", "")-%char-%time( "mm-dd-yy").txt}
_________________
Discord: Shalimarwildcat
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Apr 20, 2006 9:33 am   
 
#alias atconnect {#EXEC {%concat(":ChildWindow:#LOG {",%replace( %title, " ", ""),"-",%char,"-",%time( "mm-dd-yy").".txt}")}}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net