NSLogはstderrに吐いているだけなので,- (void)applicationDidFinishLaunching:(NSNotification *)aNotification内などで
freopen([@"/tmp/xcode.log" fileSystemRepresentation], "w+", stderr);
とすると/tmp/xcode.logに出力される.便利.
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
NSLogはstderrに吐いているだけなので,- (void)applicationDidFinishLaunching:(NSNotification *)aNotification内などで
freopen([@"/tmp/xcode.log" fileSystemRepresentation], "w+", stderr);
とすると/tmp/xcode.logに出力される.便利.
Register as a new user and use Qiita more conveniently
Go to list of users who liked