TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#log addition, timestamp

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
Chicomecoatl



Joined: 08 Sep 2009
Posts: 73
Location: Kansas

PostPosted: Sun Mar 20, 2011 2:33 am    Post subject: #log addition, timestamp Reply with quote

Really simple change, i think. And it could be done without breaking any previously made scripts.

Simply change:

Code:

Syntax: #log {append|overwrite} {filename}


to

Code:

Syntax: #log {append|overwrite} {filename} [strftime format]


So one could do something like:

Code:

#log append $dir/logs/log.txt {%D %H:%M:%S}


And it would log each line with a prefix of that format. For example, if i were to recieve something being logged right now it would appear as

Code:
03/20/11 02:32:14 This is some text from the mud

_________________
Chico
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Mar 20, 2011 9:28 pm    Post subject: Reply with quote

I've added the request to my todo list, might be a while before I get around to it.
Back to top
View user's profile Send private message Send e-mail
atraeyu



Joined: 12 Dec 2007
Posts: 165

PostPosted: Sat Sep 27, 2014 9:39 am    Post subject: Reply with quote

Second this request, was just trying to figure out if it was possible to put timestamps in my debug.log file. Smile
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests All times are GMT - 5 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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group