void ILogixUserEventLogger.LogEvents(LogixLogEvent payLoad)
        {
            LogixLogEvent logixLogEvent = new LogixLogEvent
            {
                AdditionalInfo = payLoad.AdditionalInfo,
                Application    = payLoad.Application,
                ConnectLoginID = payLoad.ConnectLoginID,
                EventName      = payLoad.EventName,

                SyncID           = System.Guid.NewGuid(),
                IsLoggedFromMsmq = false,               // Default value
                LogDateTime      = System.DateTime.Now, // Default value
            };

            try
            {
                if (Configuration.UseMessageQueue.ToUpper() == "YES")
                {
                    logixLogEvent.IsLoggedFromMsmq = true;
                    _queueLogger.LogUserEvents(logixLogEvent);
                }
                else
                {
                    _databaseLogger.LogUserEvents(logixLogEvent);
                }
            }
            catch (System.ServiceModel.FaultException <LogixLogFaultException> faultException)
            {
                LogException
                (
                    new LogixLogError
                {
                    ApplicationName = payLoad.Application,
                    ConnectLoginID  = payLoad.ConnectLoginID,
                    ErrorMessage    = faultException.Message,
                    Source          = "Error occured in ILogixUserEventLogger.LogEvents(LogixLogEvent payLoad) > _databaseLogger.LogUserEvents(logixLogEvent)",
                    StackTrace      = ExtractExceptionDetail(faultException)
                },
                    faultException
                );
            }
            catch (System.Exception generalException)
            {
                LogException
                (
                    new LogixLogError
                {
                    ApplicationName = payLoad.Application,
                    ConnectLoginID  = payLoad.ConnectLoginID,
                    ErrorMessage    = generalException.Message,
                    Source          = "Error occured in ILogixUserEventLogger.LogEvents(LogixLogEvent payLoad) > _databaseLogger.LogUserEvents(logixLogEvent)",
                    StackTrace      = ExtractExceptionDetail(generalException)
                },
                    generalException
                );
            }

            WriteUserEvents(logixLogEvent);
        }
 private void WriteUserEvents(LogixLogEvent payLoad)
 {
     _fileLogger.Log(NLog.LogLevel.Info, Newtonsoft.Json.JsonConvert.SerializeObject(payLoad));
 }
 public void LogUserEvents(LogixLogEvent payLoad)
 {
     //
 }
 void ILogixLoggerService.LogEvents(LogixLogEvent payLoad)
 {
     throw new System.NotImplementedException();
 }
 public void LogUserEvents(LogixLogEvent payLoad)
 {
     Gateway.LogEvents(payLoad);
 }
 public void LogEvents(LogixLogEvent payLoad)
 {
     base.Gateway.LogEvents(payLoad);
 }