0

How to direct logs to multiple log files (destinations) – log4cpp

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

log4cpp can not only be used to log the events to a log file or standard output, but also helps you to log events to multiple destinations. For this purpose, either you can add multiple appenders to a single category or make use of multiple Categories. We will explore the first options. With this option, [...]

Tags: , , , , , , , , , , ,

 
0

log4cpp Category

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

Every log message has a priority. But depending on the scenario we decide whether we need to log a message or not. Like every message has a priority, similarly every scenario has a priority. We have the following priorities arranged in the descending order. EMERG, FATAL ALERT CRIT ERROR WARN NOTICE INFO DEBUG NOTSET (no [...]

Tags: , , , , , , , ,

 
0

Three Important Steps for Log4cpp Programming

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

When you start working with log4cpp, you need to take care of the following steps Initializing an Appender Deciding on the Layout Finalize on the Category Let’s see what each of these mean. Appender: Appender in log4cpp corresponds to the destination of logs. A suitable appender is initialized based on your requirements. The destination of [...]

Tags: , , , , , ,

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