Log4cplus is an excellent open-source logstore Based on C/C ++. Log4cplus is thread-safe and does not need to write logs in the multi-thread state. It is flexible to use. You can set the output location at the log level through the configuration file, and dynamically set the log output level when the program is running, you can control the output of logs as you like, and control logs with multiple granularities. Information can be prioritized to support the entire life cycle of program debugging, operation, testing, and maintenance; you can choose to output information to the screen, file, NT Event Log, or even remote server. You can regularly back up logs by specifying a policy. It can meet the requirements of most developers for the log system and provides comprehensive functions.
: Http://sourceforge.net/projects/log4cplus/files/log4cplus-stable/
Tar-xjf log4cplus-1.0.4.tar.bz2 (extract), switch to the extract path
Install:./configure; Make; make install
The installation is successful. The default path is/usr/local/lib/. The header file is/usr/local/include/log4cplus.
Copy the log4cplus-related libraries under/usr/local/lib to/usr/lib and add the header files to cplus_include_path under/etc/profile.