public static void OnReportEvent(eAppReportType reportType, string reportMessage, eAppReporterLogLevel reportLogLevel = eAppReporterLogLevel.INFO, Exception reportExceptionToRecord = null, bool logOnlyOnDebugMode = false, eAppReporterMessageType reportMessageType = eAppReporterMessageType.INFO) { ReportEventHandler handler = ReportEvent; if (handler != null) { handler(new AppReportEventArgs(reportType, reportMessage, reportLogLevel, reportExceptionToRecord, logOnlyOnDebugMode, reportMessageType)); } }
public AppReportEventArgs(eAppReportType reportType, string reportMessage, eAppReporterLogLevel reportLogLevel = eAppReporterLogLevel.INFO, Exception reportExceptionToRecord = null, bool logOnlyOnDebugMode = false, eAppReporterMessageType reportMessageType = eAppReporterMessageType.INFO) { mReportType = reportType; mReportMessage = reportMessage; mReportLogLevel = reportLogLevel; mLogOnlyOnDebugMode = logOnlyOnDebugMode; mReportExceptionToRecord = reportExceptionToRecord; mReportMessageType = reportMessageType; }