<?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: Objective-C Trace statements</title>
	<atom:link href="http://bigbucketsoftware.com/2008/05/18/objective-c-trace-statements/feed/" rel="self" type="application/rss+xml" />
	<link>http://bigbucketsoftware.com/2008/05/18/objective-c-trace-statements/</link>
	<description>Software you like to use</description>
	<lastBuildDate>Thu, 02 Sep 2010 20:54:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: radj</title>
		<link>http://bigbucketsoftware.com/2008/05/18/objective-c-trace-statements/comment-page-1/#comment-2052</link>
		<dc:creator>radj</dc:creator>
		<pubDate>Wed, 09 Jul 2008 02:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigbucketblog.com/?p=159#comment-2052</guid>
		<description>Is there a way to force NSLog to output to a file instead of the console so that I can segregate all my logs to that file and I wouldn&#039;t have to sort through the logs from other apps?</description>
		<content:encoded><![CDATA[<p>Is there a way to force NSLog to output to a file instead of the console so that I can segregate all my logs to that file and I wouldn&#8217;t have to sort through the logs from other apps?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Logan Rockmore Design :: Blog &#187; Blog Archive &#187; A Better NSLog</title>
		<link>http://bigbucketsoftware.com/2008/05/18/objective-c-trace-statements/comment-page-1/#comment-2044</link>
		<dc:creator>Logan Rockmore Design :: Blog &#187; Blog Archive &#187; A Better NSLog</dc:creator>
		<pubDate>Wed, 21 May 2008 07:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigbucketblog.com/?p=159#comment-2044</guid>
		<description>[...] Big Bucket Blog just recently published a blog post which makes available a few custom BBTrace functions. These [...]</description>
		<content:encoded><![CDATA[<p>[...] Big Bucket Blog just recently published a blog post which makes available a few custom BBTrace functions. These [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gus Mueller</title>
		<link>http://bigbucketsoftware.com/2008/05/18/objective-c-trace-statements/comment-page-1/#comment-2051</link>
		<dc:creator>Gus Mueller</dc:creator>
		<pubDate>Mon, 19 May 2008 20:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigbucketblog.com/?p=159#comment-2051</guid>
		<description>I tend to do something similar.  I&#039;ve got a macro named debug, which looks like this:

#ifdef DEBUG
    #define debug(...) NSLog(__VA_ARGS__)
#else
    #define debug(...)
#endif

And in the target settings for the debug build, I put this in the &quot;other C flags&quot;:
-DDEBUG

And then my trace function looks like this:
debug(@&quot;%s:%d&quot;, __FUNCTION__, __LINE__);

It prints out something like so:
-[VPWindowController dealloc]:751

And I only see messages on my dev builds.</description>
		<content:encoded><![CDATA[<p>I tend to do something similar.  I&#8217;ve got a macro named debug, which looks like this:</p>
<p>#ifdef DEBUG<br />
    #define debug(&#8230;) NSLog(__VA_ARGS__)<br />
#else<br />
    #define debug(&#8230;)<br />
#endif</p>
<p>And in the target settings for the debug build, I put this in the &#8220;other C flags&#8221;:<br />
-DDEBUG</p>
<p>And then my trace function looks like this:<br />
debug(@&#8221;%s:%d&#8221;, __FUNCTION__, __LINE__);</p>
<p>It prints out something like so:<br />
-[VPWindowController dealloc]:751</p>
<p>And I only see messages on my dev builds.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
