log4cpp::Appender – Destination of Logs
As pointed out in log4cpp tutorial, one of the important things while initializing logging using log4cpp is to decide the destination of the log. It can be any file often known as log file or even across the network. An object of the class log4cpp::Appender must be initialized for this purpose as shown in the [...]
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 [...]