Fastest thread-safe logging library for C++
-
What's the fastest thread-safe logging library for C++? 1)log4cpp - Is it thread safe? 2)log4cxx - Still trying to understand its basic codes. 3)log4cplus - Still trying to understand its basic codes. 4)libboost-log- require boost logging 5)Rob Manderson Service log at http://www.codeproject.com/cpp/loggerservice.asp - Tried. But big performance impact, if large amount of data is being log by independent threads. Comparison of log4cpp, log4cxx and libboost-log is already done in http://log4cpp.hora-obscura.de/index.php/LoggingLibraryForCpp but i'm thinking of using log4cxx or log4cplus...
-
What's the fastest thread-safe logging library for C++? 1)log4cpp - Is it thread safe? 2)log4cxx - Still trying to understand its basic codes. 3)log4cplus - Still trying to understand its basic codes. 4)libboost-log- require boost logging 5)Rob Manderson Service log at http://www.codeproject.com/cpp/loggerservice.asp - Tried. But big performance impact, if large amount of data is being log by independent threads. Comparison of log4cpp, log4cxx and libboost-log is already done in http://log4cpp.hora-obscura.de/index.php/LoggingLibraryForCpp but i'm thinking of using log4cxx or log4cplus...
Depends on your requirements. I use the system event logger API. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/event_logging_functions.asp[^] It's thread safe, and i find it fast enough. You can create your own log file (altough this feature isn't well documented) and use the system Event Viewer to view and filter log entries. Rob originally created his because he want something that could handle a LOT of log entries being written at a high rate, and he didn't realize (originally) that the event logger would allow you to create your own log file. ...cmk Save the whales - collect the whole set