Use of log4cplus in centos 6.2

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.