title: Threadsafe logging inside C++ Shared library
body: <p>I have implemented multithreaded shared library in C++ (For Linux and Windows). I would like to add logging mechanism inside the library itself. The caller of the library is not aware of that. The log file would be same so I am wondering how could I design the thread safe logging if multiple process is using my library and trying to open and log into the same log file. Any suggestions?</p>