public void OnLogSave(ToastLoggerLogObject logObject)
        {
            LogEntry log = new LogEntry();

            log.LogType       = logObject.GetLoggerType();
            log.LogLevel      = logObject.GetLogLevel();
            log.Message       = logObject.GetLogMessage();
            log.TransactionId = logObject.GetTransactionId();
            log.CreateTime    = logObject.GetCreateTime();

            if (_listenerLogger != null)
            {
                _listenerLogger.OnSave(log);
            }
        }
        public void OnLogFilter(string filterName, ToastLoggerLogObject logObject)
        {
            LogEntry log = new LogEntry();

            log.LogType       = logObject.GetLoggerType();
            log.LogLevel      = logObject.GetLogLevel();
            log.Message       = logObject.GetLogMessage();
            log.TransactionId = logObject.GetTransactionId();
            log.CreateTime    = logObject.GetCreateTime();

            if (_listenerLogger != null)
            {
                _listenerLogger.OnFilter(log, LogFilter.FromName(filterName));
            }
        }
        public void OnLogSuccess(ToastLoggerLogObject logObject)
        {
            LogEntry log = new LogEntry();

            log.LogType       = logObject.GetLoggerType();
            log.LogLevel      = logObject.GetLogLevel();
            log.Message       = logObject.GetLogMessage();
            log.TransactionId = logObject.GetTransactionId();
            log.CreateTime    = logObject.GetCreateTime();

            if (log.LogType == ToastLoggerType.CRASH_FROM_UNITY)
            {
                InvokeCrashListener(true, log);
            }
            else
            {
                if (_listenerLogger != null)
                {
                    _listenerLogger.OnSuccess(log);
                }
            }
        }
        public void OnLogError(ToastLoggerLogObject logObject, string errorMessage)
        {
            LogEntry log = new LogEntry();

            log.LogType       = logObject.GetLoggerType();
            log.LogLevel      = logObject.GetLogLevel();
            log.Message       = logObject.GetLogMessage();
            log.TransactionId = logObject.GetTransactionId();
            log.CreateTime    = logObject.GetCreateTime();

            if (log.LogType == ToastLoggerType.CRASH_FROM_UNITY)
            {
                InvokeCrashListener(false, log);
            }
            else
            {
                if (_listenerLogger != null)
                {
                    _listenerLogger.OnError(log,
                                            string.IsNullOrEmpty(errorMessage) ? "Unknown error" : errorMessage);
                }
            }
        }
 public void SetLogData(ToastLoggerLogObject log)
 {
     Key        = log.GetDuplicateJSONString();
     HashMd5    = Md5Sum(Key);
     CreateTime = log.GetCreateTime();
 }