Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
log4cpp
I downloaded this from here:
http://log4cpp.sourceforge.net/[^]

As you told me.
but now when i ./configure it
it not compleated
after that when i make it.it give me an error
automatically generated bcb5/ config/ doc/ include/ m4/ msvc6/ openvms/ src

so helpout me to solve this problem

if this library is not good then give me a good link for download

i want to event log in c++ of linux
Posted
Updated 2-Jan-12 10:40am
v3

First, check the package management system of your Linux distribution to see if the library is available as a pre-compiled package. For example, in Ubuntu you should install packages liblog4cpp5, liblog4cpp5-dev and liblog4cpp-doc. Other distributions have different naming conventions.
 
Share this answer
 
A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations. It is modeled after the Log for Java library (http://www.log4j.org), staying as close to their API as is reasonable.(as described by yum info)


Let’s first search for the package


$ yum search log4cpp
log4cpp-devel.i686 : Header files, libraries and development documentation for
log4cpp.i686 : C++ logging library

Note that you must be the root/administrator to install the package. To install this package in Red Hat/Fedora Linux.

$ yum install log4cpp

You can check the details of this package log4cpp

$ yum info log4cpp
 
Share this answer
 
Comments
markkuk 2-Jan-12 9:14am    
You must install the log4cpp-devel package as well to compile and link C++ programs that use the library.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900