NSLog
はstderrに吐いているだけなので,- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
内などで
freopen([@"/tmp/xcode.log" fileSystemRepresentation], "w+", stderr);
とすると/tmp/xcode.log
に出力される.便利.
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