<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Logging on tasks</title>
	<atom:link href="http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/feed/" rel="self" type="application/rss+xml" />
	<link>http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/</link>
	<description>A symfony development blog by Nicolas Martin</description>
	<lastBuildDate>Mon, 21 Sep 2009 11:47:20 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Naresh</title>
		<link>http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/#comment-177</link>
		<dc:creator>Naresh</dc:creator>
		<pubDate>Thu, 17 Sep 2009 21:26:53 +0000</pubDate>
		<guid isPermaLink="false">http://arpeggios.wordpress.com/?p=53#comment-177</guid>
		<description>Thanks...

This post helped me a lot ....</description>
		<content:encoded><![CDATA[<p>Thanks&#8230;</p>
<p>This post helped me a lot &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas.martin</title>
		<link>http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/#comment-147</link>
		<dc:creator>nicolas.martin</dc:creator>
		<pubDate>Thu, 11 Jun 2009 18:56:32 +0000</pubDate>
		<guid isPermaLink="false">http://arpeggios.wordpress.com/?p=53#comment-147</guid>
		<description>You can notify your log event from anywhere, using sfContext::getInstance()-&gt;getEventDispatcher()-&gt;notify()

Instead of creating the logger in the task, you can move it to your ProjectConfiguration::setup() method.

As this method comes early in the execution, the logger will be loaded and ready to be notified.</description>
		<content:encoded><![CDATA[<p>You can notify your log event from anywhere, using sfContext::getInstance()-&gt;getEventDispatcher()-&gt;notify()</p>
<p>Instead of creating the logger in the task, you can move it to your ProjectConfiguration::setup() method.</p>
<p>As this method comes early in the execution, the logger will be loaded and ready to be notified.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve S</title>
		<link>http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/#comment-146</link>
		<dc:creator>Steve S</dc:creator>
		<pubDate>Thu, 11 Jun 2009 18:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://arpeggios.wordpress.com/?p=53#comment-146</guid>
		<description>Hi,

Do you know if you can log in code called by a task?

My log statements are not printing out.  It seems the context doesn&#039;t get setup by the task.

Steve</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Do you know if you can log in code called by a task?</p>
<p>My log statements are not printing out.  It seems the context doesn&#8217;t get setup by the task.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas.martin</title>
		<link>http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/#comment-81</link>
		<dc:creator>nicolas.martin</dc:creator>
		<pubDate>Sun, 22 Mar 2009 14:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://arpeggios.wordpress.com/?p=53#comment-81</guid>
		<description>In a task, the name of the configuration property is &#039;configuration&#039;, not &#039;config&#039;.
So try this instead :

      $file_logger = new sfFileLogger($this-&gt;dispatcher, array( 
        &#039;file&#039; =&gt; $this-&gt;&lt;strong&gt;configuration&lt;/strong&gt;-&gt;getRootDir().&#039;/log/dostuff.log&#039;
      ));

I fixed this typo error in the post.</description>
		<content:encoded><![CDATA[<p>In a task, the name of the configuration property is &#8216;configuration&#8217;, not &#8216;config&#8217;.<br />
So try this instead :</p>
<p>      $file_logger = new sfFileLogger($this-&gt;dispatcher, array(<br />
        &#8216;file&#8217; =&gt; $this-&gt;<strong>configuration</strong>-&gt;getRootDir().&#8217;/log/dostuff.log&#8217;<br />
      ));</p>
<p>I fixed this typo error in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/#comment-80</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sun, 22 Mar 2009 13:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://arpeggios.wordpress.com/?p=53#comment-80</guid>
		<description>Hi Nicolas,

Just wondered whether a variation on the above is required for sf1.2 ?

I am currently getting &quot;Fatal error: Call to a member function getRootDir() on a non-object&quot; because of the line: file&#039; =&gt; $this-&gt;config-&gt;getRootDir().&#039;/log/tasks.log&#039;

Any ideas?

Thanks,
J</description>
		<content:encoded><![CDATA[<p>Hi Nicolas,</p>
<p>Just wondered whether a variation on the above is required for sf1.2 ?</p>
<p>I am currently getting &#8220;Fatal error: Call to a member function getRootDir() on a non-object&#8221; because of the line: file&#8217; =&gt; $this-&gt;config-&gt;getRootDir().&#8217;/log/tasks.log&#8217;</p>
<p>Any ideas?</p>
<p>Thanks,<br />
J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rpsblog.com &#187; A week of symfony #85 (11-&#38;gt;17 august 2008)</title>
		<link>http://arpeggios.wordpress.com/2008/08/15/logging-on-tasks/#comment-8</link>
		<dc:creator>rpsblog.com &#187; A week of symfony #85 (11-&#38;gt;17 august 2008)</dc:creator>
		<pubDate>Sun, 31 Aug 2008 23:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://arpeggios.wordpress.com/?p=53#comment-8</guid>
		<description>[...] Logging on tasks [...]</description>
		<content:encoded><![CDATA[<p>[...] Logging on tasks [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
