Re: Cocoa and NSLog

2008-11-14 Thread Tommy Nordgren
On 10 nov 2008, at 07.16, Marcus wrote: 9 nov 2008 kl. 23.03 skrev Tommy Nordgren: Is it possible to open an Additional file for use by logging in Cocoa (I want it to contain ONLY the info logged from my App) You can do that by just redirect standard error to a file. Since each process h

Re: Cocoa and NSLog

2008-11-10 Thread Barry Wark
On Sun, Nov 9, 2008 at 2:03 PM, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > Is it possible to open an Additional file for use by logging in Cocoa > (I want it to contain ONLY the info logged from my App) I would suggest you check out the Apple System Logging facility (asl.h). It allows you to send

Re: Cocoa and NSLog

2008-11-09 Thread Marcus
9 nov 2008 kl. 23.03 skrev Tommy Nordgren: Is it possible to open an Additional file for use by logging in Cocoa (I want it to contain ONLY the info logged from my App) You can do that by just redirect standard error to a file. Since each process has their own set of file descriptors it wil

Re: Cocoa and NSLog

2008-11-09 Thread Uli Kusterer
On 09.11.2008, at 23:03, Tommy Nordgren wrote: Is it possible to open an Additional file for use by logging in Cocoa (I want it to contain ONLY the info logged from my App) You can write your own logging function/macro that uses [NSString stringWithFormat: @"", ...] and then appends that to

Cocoa and NSLog

2008-11-09 Thread Tommy Nordgren
Is it possible to open an Additional file for use by logging in Cocoa (I want it to contain ONLY the info logged from my App) -- "Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone" [EMAIL PRO