Exemple #1
0
        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));
            }
        }
Exemple #2
0
        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;
        }