How to Log into file in resource folder?
<pre><code>NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *logPath = [documentsDirectory stringByAppendingPathComponent:@"console2.log"];
    freopen([logPath cStringUsingEncoding:NSASCIIStringEncoding],"a+",stderr);
</code></pre>

<p>'By this code i get logs in a log file present in Application Path (Application Support--</p>

<blockquote>
  <p>iPhone Simulator--> ...), but i wanted the logs in a log file present in a resource folder. How do i do that ?'</p>
</blockquote>
