/// 打印Log/// @param level log级别,参考PLTLogLevel/// @param msg log信息- (void)log:(MALogLevel)level msg:(NSString *)msg;
typedef NS_ENUM(NSInteger, TMAReportEventID) {// 未定义,报报用户自定义事件// Undefined, report user-defined eventsTMAReportEventID_None = 0,// 打开小程序// Open the mini appTMAReportEventID_OPEN_MINIAPP = 1,// 更新小程序// Update the mini appTMAReportEventID_UPDATE_MINIAPP = 2,// 下载小程序// Download the mini appTMAReportEventID_DOWNLOAD_MINIAPP = 3,// 小程序页面浏览// Open the mini app pageTMAReportEventID_MINIAPP_PAGE_VIEW = 4,// 退出小程序// Close the mini appTMAReportEventID_EXIT_MINIAPP = 5,// 小程序行为事件,atcion:0 后台;1 前台// Mini program action events, atcion: 0 onHide; 1 onShowTMAReportEventID_MINIAPP_ACTION = 6};// 上报数据 - Report data// @param event 事件,参考TMAReportEventID - Event Id,Reference TMAReportEventID// @param eventName 事件名称 - Event Name// @param params 参数 - params// @param appInfo 小程序信息 - Mini program info// @return 是否拦截内部上报 - Whether to intercept internal reports- (BOOL)reportEvent:(int)eventIdeventName:(NSString *)eventNameparams:(NSDictionary *)paramsappinfo:(TMFMiniAppInfo *)appInfo;
// 上报日志数据 - Report log data// @param appId appID// @param jsVersion 基础库版本 - The basic library version// @param page 当前页面 - The current page// @param filterMsgs 过滤内容 - The filter contents// @param logs 日志事件 - Log events// @param completionBlock 结果回调 - Callback result// @return 是否拦截内部上报 - Whether to intercept internal reports- (BOOL)reportRealTimeLogWithAppId:(NSString *)appIdjsVersion:(NSString *)jsVersionpage:(NSString *)pagefilterMsgs:(NSArray <NSString *>*)filterMsgslogs:(NSArray <TMARealtimeLogItem *>*)logscompletionBlock:(void (^)(NSError * _Nullable error))completionBlock;
// 上传appID对应小程序的log - Upload the log of the applet corresponding to the appID// 实现时,可以使用TMFMiniAppSDKManager的`sandBoxPathWithAppID:`接口获取沙箱路径,然后拼接`usr/miniprogramLog/`获取 - When implementing, you can use the `sandBoxPathWithAppID:` interface of TMFMiniAppSDKManager to obtain the sandbox path, and then splice `usr/miniprogramLog/` to obtain it.// @param appID 小程序的appID - The appID of mini program/mini game- (void)uploadLogFileWithAppID:(NSString *)appID;
本页内容是否解决了您的问题?