I need to add logging functionality to this large C++ project I'm working on. This will be encapsulated within a singleton class, that has two exposed methods:
// Stores the given data in a file, along with the time that it was called.
void logCurrentParameters( logdata_struct data );
// Returns the data that matches the query string (query format not set yet).
vector<logdata_struct> getLogEntries( string query );
Constraints:
- I don't want to have to code any more than absolutely necessary.
- The simpler the better. Bonus points if it doesn't need anything beyond a static library.
- Needs to work on Windows NT/XP.
Any advice, suggestions, or offers of help? |