
12 Feb
2009
12 Feb
'09
7:12 a.m.
Wouldn't it be better to do scoped logging ? It would prevent from mixing data when doing some MT programs, it would solve the "open_record()" problem, etc. But in this case their would be a scoped_mutex on our log writing function. And then, the destructor would log everything, so that we would be able to put many informations on the log stream and then log them all. -- Alp Mestan In charge of the C++ section on Developpez.com.