Alex Rivera | Logout

Writing a Log file in C/C++

Asked 2011-09-13T10:32:59.220
31

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 back to this log file to see the properties of anything that interests me in particular... Could someone help me in achieving this?

Edit
Report

1 Answer

4

Why not use one of the many logging frameworks available, like Apache log4cxx? I would suggest this rather than attempting to roll your own - why re-invent the wheel?

answered 2011-09-13T10:37:38.777

Your Answer