/// Print log/// @param level Log level. For more information, see `PLTLogLevel`./// @param msg Log message- (void)log:(MALogLevel)level msg:(NSString *)msg;
typedef NS_ENUM(NSInteger,TMAReportEventID){.// undefined, report user-defined events// undefined, report user-defined eventTMAReportEventID_None = 0,// Open the mini program.// Open the mini program.TMAReportEventID_OPEN_MINIAPP = 1,// update the mini program// Update the mini program.TMAReportEventID_UPDATE_MINIAPP = 2,// Download the mini program.// Download the mini program.TMAReportEventID_DOWNLOAD_MINIAPP = 3,// Open the mini program page.// Open the mini program page.TMAReportEventID_MINIAPP_PAGE_VIEW = 4,// Exit the mini program.// close the mini programTMAReportEventID_EXIT_MINIAPP = 5,// mini program behaviour event, atcion:0 background; 1 foreground// mini program behaviour event, atcion: 0 onHide; 1 onShowTMAReportEventID_MINIAPP_ACTION = 6};// Upload data - report data// @param event event, refer to TMAReportEventID - event ID, refer to TMAReportEventID// @param eventName eventName - the name of the event// @param params params - Parameters// @param appInfo appletInfo - information about the mini program// @return Whether to intercept internal reporting - Whether to intercept internal reporting- (BOOL)reportEvent:(int)eventIdeventName:(NSString *)eventNameparams:(NSDictionary *)paramsappinfo:(TMFMiniAppInfo *)appInfo;
// Report log data - Report log data// @param appId appID// @param jsVersion base library version - base library version// @param page current page - Current page// @param filterMsgs Filtered Content - Filtered Content// @param logs log events - log events// @param completionBlock - The result of the callback.// @return Whether to block internal reporting - Whether to block internal reporting- (BOOL)reportRealTimeLogWithAppId:(NSString *)appIdjsVersion:(NSString *)jsVersionpage:(NSString *)pagefilterMsgs:(NSArray <NSString *>*)filterMsgslogs:(NSArray <TMARealtimeLogItem *>*)logscompletionBlock:(void (^)(NSError * _Nullable error))completionBlock;
// Upload the logs of the mini program corresponding to the appID - Upload the logs of the mini program corresponding to the appID// Implemented using TMFMiniAppSDKManager's `sandBoxPathWithAppID:` interface to get the sandbox path, then splice `usr/miniprogramLog/` to get it - Implemented using TMFMiniAppSDKManager's `sandBoxPathWithAppID:` interface to get the sandbox path, then splice `usr/miniprogramLog/` to get it - Implemented using TMFMiniAppSDKManager's ` sandBoxPathWithAppID: TMFMiniAppSDKManager's `sandBoxPathWithAppID:` interface to get the sandbox path, then splice `usr/miniprogramLog/` to get it.// @param appID appID of the mini program - appID of the applet/game.- (void)uploadLogFileWithAppID:(NSString *)appID;
Feedback