<?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: Redirecting NSLog to a log file</title>
	<atom:link href="http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/</link>
	<description>Coding under the Hammer</description>
	<lastBuildDate>Tue, 10 Jan 2012 20:25:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Spencer MacDonald</title>
		<link>http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/comment-page-1/#comment-849</link>
		<dc:creator>Spencer MacDonald</dc:creator>
		<pubDate>Tue, 03 May 2011 18:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://objcolumnist.com/?p=153#comment-849</guid>
		<description>I&#039;m not sure if there is a reliable way to do this while the application is executing.

You could on startup check previous log files, and delete the oldest ones if your running low on space?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure if there is a reliable way to do this while the application is executing.</p>
<p>You could on startup check previous log files, and delete the oldest ones if your running low on space?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apophenia Overload</title>
		<link>http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/comment-page-1/#comment-848</link>
		<dc:creator>Apophenia Overload</dc:creator>
		<pubDate>Mon, 02 May 2011 22:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://objcolumnist.com/?p=153#comment-848</guid>
		<description>Do you happen to know how to restrict the filesize of the log to prevent it from getting too large?</description>
		<content:encoded><![CDATA[<p>Do you happen to know how to restrict the filesize of the log to prevent it from getting too large?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spencer MacDonald</title>
		<link>http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/comment-page-1/#comment-795</link>
		<dc:creator>Spencer MacDonald</dc:creator>
		<pubDate>Tue, 30 Nov 2010 19:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://objcolumnist.com/?p=153#comment-795</guid>
		<description>If you don&#039;t redirect it, it just shows up in the console.

Run -&gt; Console</description>
		<content:encoded><![CDATA[<p>If you don&#8217;t redirect it, it just shows up in the console.</p>
<p>Run -> Console</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Toth</title>
		<link>http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/comment-page-1/#comment-794</link>
		<dc:creator>Michael Toth</dc:creator>
		<pubDate>Tue, 30 Nov 2010 13:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://objcolumnist.com/?p=153#comment-794</guid>
		<description>Thank you!  This helps a lot. 
I&#039;m still puzzled about where the text goes if you don&#039;t redirect stderr.  If I&#039;m running on the simulator, i see nothing.  Does it just go to /dev/null?</description>
		<content:encoded><![CDATA[<p>Thank you!  This helps a lot.<br />
I&#8217;m still puzzled about where the text goes if you don&#8217;t redirect stderr.  If I&#8217;m running on the simulator, i see nothing.  Does it just go to /dev/null?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spencer MacDonald</title>
		<link>http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/comment-page-1/#comment-747</link>
		<dc:creator>Spencer MacDonald</dc:creator>
		<pubDate>Fri, 05 Nov 2010 19:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://objcolumnist.com/?p=153#comment-747</guid>
		<description>You can call it whenever, but as you usually want everything to be logged, I normally do it in &lt;strong&gt;application:didFinishLaunchingWithOptions:&lt;/strong&gt;

&lt;strong&gt;

- (BOOL)application:(UIApplication *)application 
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{

   [self redirectNSLogToDocumentFolder];
    return YES;
}
&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>You can call it whenever, but as you usually want everything to be logged, I normally do it in <strong>application:didFinishLaunchingWithOptions:</strong></p>
<p><strong></p>
<p>- (BOOL)application:(UIApplication *)application<br />
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{</p>
<p>   [self redirectNSLogToDocumentFolder];<br />
    return YES;<br />
}<br />
</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dagmar</title>
		<link>http://objcolumnist.com/2009/12/19/redirecting-nslog-to-a-log-file/comment-page-1/#comment-746</link>
		<dc:creator>Dagmar</dc:creator>
		<pubDate>Fri, 05 Nov 2010 12:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://objcolumnist.com/?p=153#comment-746</guid>
		<description>Noob question.... I have added this code to my App delegate.m

Where and how can I call this?  Many thanks!</description>
		<content:encoded><![CDATA[<p>Noob question&#8230;. I have added this code to my App delegate.m</p>
<p>Where and how can I call this?  Many thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

