<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Joys of Programming &#187; log4cpp examples</title>
	<atom:link href="http://joysofprogramming.com/tag/log4cpp-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://joysofprogramming.com</link>
	<description>Programming made simpler, easier and Joyful experience</description>
	<lastBuildDate>Mon, 30 Jan 2012 14:11:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to direct logs to multiple log files (destinations) &#8211; log4cpp</title>
		<link>http://joysofprogramming.com/multiple-log-files-destinations/</link>
		<comments>http://joysofprogramming.com/multiple-log-files-destinations/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 14:23:54 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[addAppender]]></category>
		<category><![CDATA[Data logger]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[log files]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp category]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp programming]]></category>
		<category><![CDATA[log4cpp tutorial]]></category>
		<category><![CDATA[log4cpp::Category]]></category>
		<category><![CDATA[multiple log files]]></category>
		<category><![CDATA[setAdditivity]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=316</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=316&c=875342738' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=316&c=875342738' border='0' alt='' /></a></p><br />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, [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=316&c=335008737' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=316&c=335008737' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/multiple-log-files-destinations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>log4cpp: Logging Events and Priorities</title>
		<link>http://joysofprogramming.com/log4cpp-events-priorities/</link>
		<comments>http://joysofprogramming.com/log4cpp-events-priorities/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 06:50:42 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp priority]]></category>
		<category><![CDATA[log4cpp programming]]></category>
		<category><![CDATA[log4cpp tutorial]]></category>
		<category><![CDATA[log4cpp::LoggingEvent]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[logging events]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=310</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=310&c=241988781' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=310&c=241988781' border='0' alt='' /></a></p><br />The most important aspect of a log message is its priority. Take a simple scenario, when you are debugging your program, you want to display all the logs in your program. At that moment, you are not concerned about the resource crunch and performance impact. But when your program is running, you do not want [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=310&c=546490396' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=310&c=546490396' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-events-priorities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>log4cpp Category</title>
		<link>http://joysofprogramming.com/log4cpp-category/</link>
		<comments>http://joysofprogramming.com/log4cpp-category/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 06:44:50 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp category]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp layout]]></category>
		<category><![CDATA[log4cpp priority]]></category>
		<category><![CDATA[log4cpp programming]]></category>
		<category><![CDATA[log4cpp::Appender]]></category>
		<category><![CDATA[logging events]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=308</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=308&c=2033023621' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=308&c=2033023621' border='0' alt='' /></a></p><br />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 [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=308&c=1826301872' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=308&c=1826301872' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>log4cpp::PatternLayout &#8211; Available log4cpp log formats</title>
		<link>http://joysofprogramming.com/log4cpp-patternlayout/</link>
		<comments>http://joysofprogramming.com/log4cpp-patternlayout/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 06:38:31 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp PatternLayout]]></category>
		<category><![CDATA[Pattern Layout]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=304</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=304&c=2145905727' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=304&c=2145905727' border='0' alt='' /></a></p><br />log4cpp supports three layouts: Simple Layout, Basic Layout and PatternLayout. Simple and Basic Layout are the simplest ones and you need not configure them in any way. The display the log in a fixed format. log4cpp::PatternLayout has the additional advantage that it supports four different formats and provides a mechanism to create a format of [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=304&c=249890166' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=304&c=249890166' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-patternlayout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>log4cpp::SimpleLayout &#8211; A Simple Layout for log4cpp logs</title>
		<link>http://joysofprogramming.com/log4cpp-simplelayout/</link>
		<comments>http://joysofprogramming.com/log4cpp-simplelayout/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:54:05 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[log format]]></category>
		<category><![CDATA[log layout]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp::SimpleLayout]]></category>
		<category><![CDATA[Simple Layout]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=297</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=297&c=39777840' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=297&c=39777840' border='0' alt='' /></a></p><br />log4cpp supports three different Layouts, one of which is the SimpleLayout. log4cpp::SimpleLayout has the following format for every log message priority message where priority is one of the different values like DEBUG, WARN, NOTICE, INFO, CRIT, ERROR and the message is the same as the string which you want to print. Initializing a SimpleLayout is [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=297&c=1455720372' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=297&c=1455720372' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-simplelayout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>log4cpp::Layout &#8211; Deciding on the Layout of Logs</title>
		<link>http://joysofprogramming.com/log4cpp-layout-layout-of-logs/</link>
		<comments>http://joysofprogramming.com/log4cpp-layout-layout-of-logs/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:33:59 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[lg4cpp programming]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp:::Layout]]></category>
		<category><![CDATA[log4cpp::BasicLayout]]></category>
		<category><![CDATA[log4cpp::PatternLayout]]></category>
		<category><![CDATA[log4cpp::SimpleLayout]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=296</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=296&c=1261952670' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=296&c=1261952670' border='0' alt='' /></a></p><br />log4cpp helps you to decide on the Layout of the logs. The layout of a log means the format according to which you want to display a message depending on the logging event. log4cpp supports the following Layouts Simple Layout Basic Layout Pattern Layout You can even make a Layout of your own. Making a [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=296&c=529563793' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=296&c=529563793' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-layout-layout-of-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring log4cpp (Simple)</title>
		<link>http://joysofprogramming.com/configuring-log4cpp/</link>
		<comments>http://joysofprogramming.com/configuring-log4cpp/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 14:20:35 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[BasicConfigurator]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp configuration]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp::BasicConfigurator]]></category>
		<category><![CDATA[simple configuration]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=293</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=293&c=1792240997' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=293&c=1792240997' border='0' alt='' /></a></p><br />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<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=293&c=172530161' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=293&c=172530161' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/configuring-log4cpp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log4cpp::StringQueueAppender &#8211; Manipulating the log4cpp logs</title>
		<link>http://joysofprogramming.com/log4cpp-stringqueueappender/</link>
		<comments>http://joysofprogramming.com/log4cpp-stringqueueappender/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 14:07:35 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Data logger]]></category>
		<category><![CDATA[FIFO]]></category>
		<category><![CDATA[log analytics]]></category>
		<category><![CDATA[Log Queue]]></category>
		<category><![CDATA[log statistics]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp tutorial]]></category>
		<category><![CDATA[log4cpp::Appender]]></category>
		<category><![CDATA[log4cpp:StringQueueAppender]]></category>
		<category><![CDATA[StringQueueAppender]]></category>
		<category><![CDATA[StringQueueAppender example]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=289</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=289&c=1254056660' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=289&c=1254056660' border='0' alt='' /></a></p><br />log4cpp logs can be directed to files, standard output, back up files or even to the System Log. But before moving to discussing about log4cpp::StringQueueAppender, I would like to present certain scenarios or use cases of StringQueueAppender. You do not want to actually print the log files, but simply want to count certain occurrences of [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=289&c=268219877' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=289&c=268219877' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-stringqueueappender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OstreamAppender: Direct the log4cpp logs to standard Output</title>
		<link>http://joysofprogramming.com/log4cpp-ostreamappender/</link>
		<comments>http://joysofprogramming.com/log4cpp-ostreamappender/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 13:50:13 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[Data logger]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp programming]]></category>
		<category><![CDATA[log4cpp tutorial]]></category>
		<category><![CDATA[log4cpp::Appender]]></category>
		<category><![CDATA[log4cpp::FileAppender]]></category>
		<category><![CDATA[log4cpp::OstreamAppender]]></category>
		<category><![CDATA[Standard streams]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=279</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=279&c=618271558' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=279&c=618271558' border='0' alt='' /></a></p><br />log4cpp enables you to easily log important events. The logs can be directed to files or even periodically rolled back and back up. There are multiple destinations for the log files and you can decide which one to choose from. Though in most cases, you want to use log files, you can also make use [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=279&c=1161897625' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=279&c=1161897625' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-ostreamappender/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>log4cpp::RollingFileAppender &#8211; How to Backup and Roll Over log files?</title>
		<link>http://joysofprogramming.com/log4cpp-rollingfileappender/</link>
		<comments>http://joysofprogramming.com/log4cpp-rollingfileappender/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 18:16:43 +0000</pubDate>
		<dc:creator>Joys of Programming</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[Data logger]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[log4cpp]]></category>
		<category><![CDATA[log4cpp examples]]></category>
		<category><![CDATA[log4cpp programming]]></category>
		<category><![CDATA[log4cpp tutorial]]></category>
		<category><![CDATA[log4cpp::Appender]]></category>
		<category><![CDATA[log4cpp::FileAppender]]></category>
		<category><![CDATA[log4cpp:RollingFileAppender]]></category>

		<guid isPermaLink="false">http://joysofprogramming.com/?p=231</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=231&c=2088121859' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=231&c=2088121859' border='0' alt='' /></a></p><br />It is very important to log the events in your software both for analytics and debugging.  Log4cpp is helpful for logging in with C++. Log4Cpp::File Appender can be used to direct the output of logs to a file. But there are certain challenges that you may face while using log files The files can soon [...]<br /><p><a href='http://rss.buysellads.com/click.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=231&c=1554244488' target='_blank' rel='nofollow'>
				<img src='http://rss.buysellads.com/img.php?z=1269089&k=23c392ff10b5df99bd4d1ca43340de34&a=231&c=1554244488' border='0' alt='' /></a></p>]]></description>
		<wfw:commentRss>http://joysofprogramming.com/log4cpp-rollingfileappender/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  joysofprogramming.com/tag/log4cpp-examples/feed/ ) in 3.30557 seconds, on Feb 8th, 2012 at 3:00 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 4:00 am UTC -->
