|
@ -46,8 +46,20 @@
|
46
|
46
|
content = [NSString stringWithFormat:@"%@",params[0]];
|
47
|
47
|
}
|
48
|
48
|
if (content) {
|
49
|
|
NSLog(@"开始发送自定义日志=====%@",content);
|
50
|
|
[[IpuCountUDPHelper sharedInstance] sendReport:content];
|
|
49
|
NSString *logType = @"6";
|
|
50
|
|
|
51
|
UIDevice *dev = [UIDevice currentDevice];
|
|
52
|
NSString *uuid = dev.identifierForVendor.UUIDString;
|
|
53
|
NSString *appName = [IpuCommonUtil getAppName];
|
|
54
|
NSString *appIdentifier = [IpuCommonUtil getAppIdentifier];
|
|
55
|
NSString *logkey = [NSString stringWithFormat:@"%@%@%@%@%@",uuid,LOG_ITEM_SEPERATOR,appName,LOG_ITEM_SEPERATOR,appIdentifier];
|
|
56
|
|
|
57
|
NSString *logSendTime = [IpuCommonUtil getCurrentDefaultFormatTime];
|
|
58
|
|
|
59
|
NSString *logStr = [NSString stringWithFormat:@"%@%@%@%@%@%@%@",logType,LOG_SEPERATOR,logkey,LOG_SEPERATOR,logSendTime,LOG_SEPERATOR,content];
|
|
60
|
|
|
61
|
NSLog(@"开始发送自定义日志=====%@",logStr);
|
|
62
|
[[IpuCountUDPHelper sharedInstance] sendReport:logStr];
|
51
|
63
|
}
|
52
|
64
|
}
|
53
|
65
|
|