Search code examples
c++loggingrotatorlogrotatelog-rotation

making a functionality of a rotator that creates a timestamp every minute of a day


I have a logging project , i need to know how to build a functionality so that rotator checks for every minute while the program is running and create timestamps for every minute just to store all day's timestamps to a log file ,please help.

thanks


Solution

  • I suggest to use mutex for checking: http://msdn.microsoft.com/en-us/library/ms686927%28VS.85%29.aspx Timestamp and log file is nothing to do with it. Use a MSDN - you'll find there examples.