About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Additional Log Functions
Author Message
paviii Offline
Member

Post: #1
Additional Log Functions
The current Log system only allows for output to the hard coded log.txt file. It would be nice if the file name could be specified (i.e. client_log and server_log) so that multiple logs can be used, one for each application instead of placing it all in one file.

This is not a big issue, just a nice feature for flexibility.

Thanks
Paviii
06-13-2012 01:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Additional Log Functions
thanks, this will be available in next SDK:
Code:
void LogName(C Str &name  ); Str LogName(); // set/get file name for the log file, default="log.txt"
void LogDel (             );                // delete log file
void Log    (C Str &text  );                // write text              to log file
void LogN   (C Str &text=S);                // write text and new-line to log file
void LogShow(Bool thread_id, Bool date, Bool time, Bool cur_time); // set which additional information should be displayed during logging, 'thread_id'=ID of the thread which is writing to log, 'date'=year-month-day at the moment of the log, 'time'=hour-minute-second at the moment of the log, 'cur_time'=time in seconds obtained using 'Time.curTime()'
06-13-2012 01:11 PM
Find all posts by this user Quote this message in a reply
paviii Offline
Member

Post: #3
RE: Additional Log Functions
Thanks, sounds good.

Paviii
06-13-2012 08:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply