I have started to use log4cpp. I ran some tests on it because I want to have multiple processes all writing to the same files.
I know its thread safe, and I did some testing on inter-process writing, it seemed to work. But then I read this:
3.2. Is log4cpp thread-safe? The same instance of the log4cpp::Category object (a logger) can be used from different threads simultaneously without explicit synchronization. Concurrent access to the appenders will be prevented by the logger object itself. It will lock internal mutex each time when it comes to writing into appenders. So, it is safe, for example, to write from the multiple threads to the same logger which appends to the same file. Although, log4cpp is configured in such a way that two different loggers append to the same appender (it may be a file), then there will be no way for the logging framework to arrange proper addition and things can get mixed up. So this way of configuration is not recommended.
From here, and now I have a doubt about that...
Does anyone have any experience with this?