<?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: Log4j Tutorial : How to send the log messages to a File using Appender</title>
	<atom:link href="http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/</link>
	<description>Java, web and design</description>
	<lastBuildDate>Sun, 20 May 2012 11:47:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Rohit Bohra</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-2081</link>
		<dc:creator>Rohit Bohra</dc:creator>
		<pubDate>Fri, 16 Mar 2012 06:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-2081</guid>
		<description>Hi veera ,

I am not able to get debug messages into my log file. and my log level is set as debug.

this is my log4j file

log4j.rootLogger=DEBUG, CA, EXECUTION_LOG
 
#Console Appender 
log4j.appender.CA=org.apache.log4j.ConsoleAppender 
log4j.appender.CA.layout=org.apache.log4j.PatternLayout 
log4j.appender.CA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n 

# Set the logger level of File Appender to WARN 
log4j.appender.EXECUTION_LOG.Threshold = WARN

#File Appender 
log4j.appender.EXECUTION_LOG=org.apache.log4j.RollingFileAppender
log4j.appender.EXECUTION_LOG.File=./Logs/sample.log
log4j.appender.EXECUTION_LOG.MaxFileSize=2MB
log4j.appender.EXECUTION_LOG.MaxBackupIndex=2
log4j.appender.EXECUTION_LOG.layout = org.apache.log4j.PatternLayout
log4j.appender.EXECUTION_LOG.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n 


i even tried TRACE level instead of debug but the result was same .
please suggest.</description>
		<content:encoded><![CDATA[<p>Hi veera ,</p>
<p>I am not able to get debug messages into my log file. and my log level is set as debug.</p>
<p>this is my log4j file</p>
<p>log4j.rootLogger=DEBUG, CA, EXECUTION_LOG</p>
<p>#Console Appender<br />
log4j.appender.CA=org.apache.log4j.ConsoleAppender<br />
log4j.appender.CA.layout=org.apache.log4j.PatternLayout<br />
log4j.appender.CA.layout.ConversionPattern=%-4r [%t] %-5p %c %x &#8211; %m%n </p>
<p># Set the logger level of File Appender to WARN<br />
log4j.appender.EXECUTION_LOG.Threshold = WARN</p>
<p>#File Appender<br />
log4j.appender.EXECUTION_LOG=org.apache.log4j.RollingFileAppender<br />
log4j.appender.EXECUTION_LOG.File=./Logs/sample.log<br />
log4j.appender.EXECUTION_LOG.MaxFileSize=2MB<br />
log4j.appender.EXECUTION_LOG.MaxBackupIndex=2<br />
log4j.appender.EXECUTION_LOG.layout = org.apache.log4j.PatternLayout<br />
log4j.appender.EXECUTION_LOG.layout.ConversionPattern=%-4r [%t] %-5p %c %x &#8211; %m%n </p>
<p>i even tried TRACE level instead of debug but the result was same .<br />
please suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-821</link>
		<dc:creator>Aditya</dc:creator>
		<pubDate>Thu, 12 Jan 2012 08:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-821</guid>
		<description>Thank you Veera for sharing such lovely information, i have a query its regarding maven n log4j

My TL was saying that if your workng on maven project means you dont have to download log4j and u dont even have build it also, so can u please tell me how to check the log files of my maven project
How maven does nt need this log4j ?

Thank you :)</description>
		<content:encoded><![CDATA[<p>Thank you Veera for sharing such lovely information, i have a query its regarding maven n log4j</p>
<p>My TL was saying that if your workng on maven project means you dont have to download log4j and u dont even have build it also, so can u please tell me how to check the log files of my maven project<br />
How maven does nt need this log4j ?</p>
<p>Thank you <img src='http://veerasundar.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amruta</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-820</link>
		<dc:creator>Amruta</dc:creator>
		<pubDate>Mon, 09 Jan 2012 13:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-820</guid>
		<description>How we can generate a new log file for every month using properties file?
Is there any appender or somthing else which can do this?</description>
		<content:encoded><![CDATA[<p>How we can generate a new log file for every month using properties file?<br />
Is there any appender or somthing else which can do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avadoot</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-819</link>
		<dc:creator>Avadoot</dc:creator>
		<pubDate>Mon, 31 Oct 2011 12:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-819</guid>
		<description>Hi veera,

 currently m working on log4j rollinf file appender, when i m running single process its rolling over file nicely but when when m runnin two process they are not rolling over file , instead they are writing to the same file .

could u please suggest me what i should do to achieve the rolling over file when multiple process are running and accessin same log file..</description>
		<content:encoded><![CDATA[<p>Hi veera,</p>
<p> currently m working on log4j rollinf file appender, when i m running single process its rolling over file nicely but when when m runnin two process they are not rolling over file , instead they are writing to the same file .</p>
<p>could u please suggest me what i should do to achieve the rolling over file when multiple process are running and accessin same log file..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Saber</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-818</link>
		<dc:creator>A Saber</dc:creator>
		<pubDate>Thu, 27 Oct 2011 03:31:10 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-818</guid>
		<description>Thanks for the tutorial. It was a great help. Regards.</description>
		<content:encoded><![CDATA[<p>Thanks for the tutorial. It was a great help. Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-817</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 20 Sep 2011 11:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-817</guid>
		<description>Great Tutorial. But what if you delete the logfile after log4j already wrote some logs?

log4j is not going to create a new logfile. Instead, all following logs will be lost. Is there any chance to avoid this?

Regards,
Rob.</description>
		<content:encoded><![CDATA[<p>Great Tutorial. But what if you delete the logfile after log4j already wrote some logs?</p>
<p>log4j is not going to create a new logfile. Instead, all following logs will be lost. Is there any chance to avoid this?</p>
<p>Regards,<br />
Rob.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Utsav</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-816</link>
		<dc:creator>Utsav</dc:creator>
		<pubDate>Tue, 05 Jul 2011 05:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-816</guid>
		<description>Hi,
I have to write code which would generate different log files for different users as the login into the application.
Someone please help me with that asap..

Regards Utsav</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have to write code which would generate different log files for different users as the login into the application.<br />
Someone please help me with that asap..</p>
<p>Regards Utsav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arvind</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-815</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Sun, 29 May 2011 04:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-815</guid>
		<description>Hi Veera,

I have a couple of queries for you-

(1) Can i set the log file name and location, as a parameter from within the code? What is the code required to do this...

(2) What all classes have to be imported to use a log file with the above feature?

Regards,
Arvind.</description>
		<content:encoded><![CDATA[<p>Hi Veera,</p>
<p>I have a couple of queries for you-</p>
<p>(1) Can i set the log file name and location, as a parameter from within the code? What is the code required to do this&#8230;</p>
<p>(2) What all classes have to be imported to use a log file with the above feature?</p>
<p>Regards,<br />
Arvind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: N Manikandan</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-814</link>
		<dc:creator>N Manikandan</dc:creator>
		<pubDate>Mon, 16 May 2011 05:38:18 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-814</guid>
		<description>Hi,

I would like to know is it possible to write different log file based on method in java class using log4j. 

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I would like to know is it possible to write different log file based on method in java class using log4j. </p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nas</title>
		<link>http://veerasundar.com/blog/2009/07/log4j-tutorial-how-to-send-the-log-messages-to-a-file/#comment-813</link>
		<dc:creator>nas</dc:creator>
		<pubDate>Wed, 05 Jan 2011 10:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://veerasundar.com/blog/?p=681#comment-813</guid>
		<description>Thats very clear. very good tutorial by  you.Easy to learn</description>
		<content:encoded><![CDATA[<p>Thats very clear. very good tutorial by  you.Easy to learn</p>
]]></content:encoded>
	</item>
</channel>
</rss>

