<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Sample log4j.properties file</title>
	<atom:link href="http://www.benmccann.com/blog/sample-log4j-properties-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benmccann.com/blog/sample-log4j-properties-file/</link>
	<description>Co-founder at Connectifier. ex-Googler. CMU alum.</description>
	<lastBuildDate>Fri, 10 May 2013 09:09:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: MAK</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-57313</link>
		<dc:creator>MAK</dc:creator>
		<pubDate>Thu, 13 Oct 2011 11:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-57313</guid>
		<description><![CDATA[Thanks for the above examples. It helps me a lot.
Can you please tell how to implement log4j for XML file.
Thanks in advance...

MAK]]></description>
		<content:encoded><![CDATA[<p>Thanks for the above examples. It helps me a lot.<br />
Can you please tell how to implement log4j for XML file.<br />
Thanks in advance&#8230;</p>
<p>MAK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lwpro2</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-46897</link>
		<dc:creator>lwpro2</dc:creator>
		<pubDate>Mon, 20 Jun 2011 10:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-46897</guid>
		<description><![CDATA[thanks. it always helps.]]></description>
		<content:encoded><![CDATA[<p>thanks. it always helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wasi</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-45639</link>
		<dc:creator>Wasi</dc:creator>
		<pubDate>Thu, 26 May 2011 06:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-45639</guid>
		<description><![CDATA[i have to catch log details and send it through web service...how can i do please guide me

How to catch the log details before reaching the log files?]]></description>
		<content:encoded><![CDATA[<p>i have to catch log details and send it through web service&#8230;how can i do please guide me</p>
<p>How to catch the log details before reaching the log files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-42700</link>
		<dc:creator>Ankur</dc:creator>
		<pubDate>Wed, 16 Mar 2011 11:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-42700</guid>
		<description><![CDATA[How does the max file size limitation works?means if I want to take a back up of the existing log file and create a new one after the size exceeds say 100 kb.
Please suggest.]]></description>
		<content:encoded><![CDATA[<p>How does the max file size limitation works?means if I want to take a back up of the existing log file and create a new one after the size exceeds say 100 kb.<br />
Please suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankur</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-42697</link>
		<dc:creator>Ankur</dc:creator>
		<pubDate>Wed, 16 Mar 2011 09:54:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-42697</guid>
		<description><![CDATA[Thanks , it is really help ful.]]></description>
		<content:encoded><![CDATA[<p>Thanks , it is really help ful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miral</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-41980</link>
		<dc:creator>Miral</dc:creator>
		<pubDate>Tue, 08 Mar 2011 01:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-41980</guid>
		<description><![CDATA[its a useful post...

Benjamin , I have a doubt ..

I was using log4j for my application logging.it was working fine.
But recently I checked , it was not creating the index files for the log.
the setting were as max size = 40 mb with 100 index files.
the same file was being overwritten.
but when i changed the file name, it created the index files.

what could be the reason for this strange behaviour...?]]></description>
		<content:encoded><![CDATA[<p>its a useful post&#8230;</p>
<p>Benjamin , I have a doubt ..</p>
<p>I was using log4j for my application logging.it was working fine.<br />
But recently I checked , it was not creating the index files for the log.<br />
the setting were as max size = 40 mb with 100 index files.<br />
the same file was being overwritten.<br />
but when i changed the file name, it created the index files.</p>
<p>what could be the reason for this strange behaviour&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Kondewar</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-33576</link>
		<dc:creator>Amit Kondewar</dc:creator>
		<pubDate>Thu, 02 Dec 2010 06:35:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-33576</guid>
		<description><![CDATA[hi Thanks Benjamin  thanks for this valuable guidence.]]></description>
		<content:encoded><![CDATA[<p>hi Thanks Benjamin  thanks for this valuable guidence.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mon</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-31304</link>
		<dc:creator>mon</dc:creator>
		<pubDate>Mon, 18 Oct 2010 19:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-31304</guid>
		<description><![CDATA[do you know what to put in the directory path for windows xp. I used to deploy my apps in a linux machine but now i just deploy it in my windows xp. do you know what  to put in here?  
 log4j.appender.R.File=/usr/local/tomcat/logs/mylog.log]]></description>
		<content:encoded><![CDATA[<p>do you know what to put in the directory path for windows xp. I used to deploy my apps in a linux machine but now i just deploy it in my windows xp. do you know what  to put in here?<br />
 log4j.appender.R.File=/usr/local/tomcat/logs/mylog.log</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandy</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-30459</link>
		<dc:creator>Mandy</dc:creator>
		<pubDate>Mon, 27 Sep 2010 08:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-30459</guid>
		<description><![CDATA[If possible, please give some SMTPAppender example
Thanks,
Mandy]]></description>
		<content:encoded><![CDATA[<p>If possible, please give some SMTPAppender example<br />
Thanks,<br />
Mandy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Oakes</title>
		<link>http://www.benmccann.com/blog/sample-log4j-properties-file/comment-page-1/#comment-27570</link>
		<dc:creator>Jeff Oakes</dc:creator>
		<pubDate>Wed, 14 Jul 2010 18:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.benmccann.com/dev-blog/?p=206#comment-27570</guid>
		<description><![CDATA[This is quite clear.  However, I am trying to set the log file location based on the value of an environment variable.  So my log4j.properties file has an entry like:

log4j.appender.Default.File=${MYAPP_HOME}/log/myapp.log

Even though MYAPP_HOME is set, the result is log4j looks for a log file in /log/myapp.log

It can not find this and so it throws an exception.

Do you have any suggestions?]]></description>
		<content:encoded><![CDATA[<p>This is quite clear.  However, I am trying to set the log file location based on the value of an environment variable.  So my log4j.properties file has an entry like:</p>
<p>log4j.appender.Default.File=${MYAPP_HOME}/log/myapp.log</p>
<p>Even though MYAPP_HOME is set, the result is log4j looks for a log file in /log/myapp.log</p>
<p>It can not find this and so it throws an exception.</p>
<p>Do you have any suggestions?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
