Ejemplo n.º 1
0
        private string ProcessLogExtra(Payload.LogMessage log)
        {
            StringBuilder environmentInformation = new StringBuilder();

            if (log.Extra != null)
            {
                foreach (var extraInfo in log.Extra)
                {
                    environmentInformation.Append(Environment.NewLine + extraInfo.Key + ": " + extraInfo.Value);
                }
            }

            return(environmentInformation.ToString());
        }
Ejemplo n.º 2
0
        private void WriteToGeneralLog(Payload.LogMessage log, DateTime instant, string sessionId, int espaceId, int tenantId, int userId)
        {
            string messageType = allowedMessageTypes.FirstOrDefault(allowedType => allowedType.EqualsIgnoreCase(log.Message_Type)) ?? "USER";

            GeneralLog.StaticWrite(instant, sessionId, espaceId, tenantId, userId, log.Message, messageType, log.Module_Name, "");
        }