There is no NSSearchPathDirectory
option for ~/Library/Logs
in Apple's docs, so you have to use NSLibraryDirectory
and build the rest up yourself:
NSArray *URLs = [[NSFileManager defaultManager] URLsForDirectory:NSLibraryDirectory
inDomains:NSUserDomainMask];
NSURL *logsURL = [[URLs lastObject] URLByAppendingPathComponent:@"Logs"];
NSString *logsPath = [libraryURL path];