0

log4cpp::PropertyConfigurator – Configure with configuration files

Posted by Joys of Programming on in C/C++

log4cpp can also be configured with the configuration files. log4cpp::PropertyConfigurator can be used for this purpose. It has a single function which takes as input the configuration file. Simply specify the configuration in a file. You must specify the layout, priority and the appender in the configuration file as shown here You can read here [...]

Tags: , , , , , ,

 
0

Configuring log4cpp (Simple)

Posted by Joys of Programming on in C/C++

If you want to see how log4cpp works with the basic configuration, there is a log4cpp::BasicConfigurator. It adds a FileAppender which logs the output to standard output and uses a BasicLayout. On executing this program, you will get the following output on the terminal

Tags: , , , , , ,

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.