creating a log file
I am creating a log file for an application I am writing. The text file has each line representing a log message. Each line needs a time stamp so that we can see when that event happened. What would be the correct time related functions to use with g++ to get these time values ?
Thanks in advance, Tom |
try http://this. Third one down seems to be good.
|
hope this helps,
Code:
void logStatus(char *logMsg,...) can make a call to this function log file would have the appropriate message with time stamp the log file can be opened , logged with message and closed upon each time a message can is logged else can be opened only once and the file pointer can be made available as a global pointer |
All times are GMT -5. The time now is 07:25 AM. |