A Simple log4cpp example
As pointed in the log4cpp tutorial, to program with log4cpp, you must be instantiate the following Appender: The destination of your log file Layout: The format of your log file Category: The type of logging like critical or debugging purposes The following simple program depicts this. Do not forget to change the value of LOGFILE. [...]
Log4Cpp Tutorial
log4cpp is used for logging in C++. Given below is the log4cpp tutorial. The tutorial explains the various features of log4cpp with examples. log4cpp Tutorial Introduction to Logging log4cpp for logging in C++ Installation of log4cpp Install log4cpp from sources A sample Log4cpp Example Compile and link log4cpp programs Three Important Steps for Log4cpp programming [...]
log4cpp for logging in C++
log4cpp is used for logging purposes in C++. If log4j is one of the important package for logging in Java, log4cpp can be considered as an equal competitor for logging in C++. In fact, log4cpp is a port of log4j. Logging is very important in software development. With log4cpp, you can easily perform the following [...]
The need for logging in Software development
Logging and Debugging are the important steps during programming. Though logging is important post-development, especially to find statistics. It can also be used to detect the reasons for a system or a software crash. But logging is not just useful post-development, but it can also be useful during development especially for debugging purposes. How do [...]
libxml: C program to open and close an XML file
To read an xml file, you can make use of the libxml library. The following program introduces the functions to open and close an xml file. We introduce here the following functions: xmlNewTextReaderFilename xmlTextReaderClose We also make use of the following structure xmlTextReaderPtr xmlTextReaderPtr: Let’s start with xmlTextReaderPtr. This is a pointer to the structure [...]
book.xml: A sample XML file
For explaining programming with libxml, we will make use of the following sample xml file
XML programming in Linux
For a detailed tutorial on XML programming, check the libxml tutorial. To start XML programming in Ubuntu, you must have the following packages in your system libxml2 libxml2-dev libxml2-doc libxml2-utils To install these packages, Once you install these packages, you must check the path where the libxml2 header files are present You must make use [...]