Hello,
thank you for your answer.
I was wondering why there where no problem with std::cout, while there was with log4cxx::stream... if internal is synchronised, it shouldnt crash and have the same behavior as std::cout, no?

For example:

Log::stream<<"message"<<LOG4CXX_ENDMSG;

is equivalent to:

Log::stream.operator<<("message");
Log::stream::operator<<(LocationFlush(__FILE__, __LINE__, ...));

Even if all operator<<'s had internal synchronization, you could still have other calls to the same logstream occurring between the insertion of "message" and the insertion of the LocationFlush object which triggers the call to Logger::debug().


of course it can maybe not preserve my intent....i could not get the message i was thinking to... but it shouldnt crash, no?

regards


        

        
                
___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com

Reply via email to