Relative Content

Tag Archive for c++multithreadingloggingrollingfileappenderlog4cxx

Log4Cxx Blocks Calling Thread While Logging?

I’m using log4cxx::rolling::RollingFileAppender() for logging in my C++ application, without any asynchronous appenders. If I invoke logging from the main thread, will the main thread be blocked until the log string is written to the log file? Moreover, what would be the most reliable method to confirm this behavior?