I want to write a log file in c++. I am processing certain things and thus i need to maintain a log of the properties of the things that i process so that i could revert bac
The sort of thing you're trying to do is too in-depth to provide a complete solution on stack overflow. What you can do is check out the documentation for the logging library of your choice. In my case, that's Boost.Log, a logging library for the Boost C++ libraries the documentation for which can be found here.
It's pointed out at the bottom of the page I've just linked to that
This library is not an official part of Boost libraries collection although it has passed the review and is provisionally accepted. The review result is available here.
so make of that what you will.