pastebin

Paste Search Dynamic
Recent pastes
main mm
  1. NSString *logPath = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingString:@"/log"];    
  2.     NSLog(@"logPath: %@", logPath);
  3.     const char* attrName = "com.apple.MobileBackup";
  4.     u_int8_t attrValue = 1;
  5.     setxattr([logPath UTF8String], attrName, &attrValue, sizeof(attrValue), 0, 0);
  6. #if DEBUG
  7.     xlogger_SetLevel(kLevelDebug);
  8.     appender_set_console_log(true);
  9. #else
  10.     xlogger_SetLevel(kLevelInfo);
  11.     appender_set_console_log(false);
  12. #endif
  13.     appender_open(kAppednerAsync, [logPath UTF8String], "fileNameprefix", "pubkey");
  14.  
Parsed in 0.012 seconds